odwdinc / Python-SimConnect

Python interface for MSFS2020 SimConnect.dll
GNU Affero General Public License v3.0
270 stars 107 forks source link

EnvironmentData redefined in RequestList #108

Closed jswij closed 2 years ago

jswij commented 2 years ago

In https://github.com/odwdinc/Python-SimConnect/blob/6fdae339f752253aa2a45cc2d21b221458c4c459/SimConnect/RequestList.py#L213 the attribute EnvironmentData is defined as an instance of AircraftEnvironmentData, however in In https://github.com/odwdinc/Python-SimConnect/blob/6fdae339f752253aa2a45cc2d21b221458c4c459/SimConnect/RequestList.py#L229 it is redefined as an instance of EnvironmentData. This makes the AircraftEnvironmentData unavailable as a group. Of course the data is present in the full list (RequestList.list), however I wanted to have a quick access to groups of data. The various *Data classes provide this, and it is working fine, except for this issue.

odwdinc commented 2 years ago

fixed https://github.com/odwdinc/Python-SimConnect/commit/50cde9f5e8228f7f2c1eea5037ad0c745de545bd