diff --git a/src/pyvesync/vesyncfan.py b/src/pyvesync/vesyncfan.py index b3af520..12d9344 100644 --- a/src/pyvesync/vesyncfan.py +++ b/src/pyvesync/vesyncfan.py @@ -373,6 +373,8 @@ def build_purifier_dict(self, dev_dict: dict) -> None: self.details['air_quality_value'] = dev_dict.get( 'air_quality_value', 0) self.details['air_quality'] = dev_dict.get('air_quality', 0) + self.current_firm_version = r.get('currentFirmVersion', self.current_firm_version) + def build_config_dict(self, conf_dict: Dict[str, str]) -> None: """Build configuration dict for Bypass purifier. @@ -1598,6 +1600,7 @@ def get_details(self) -> None: self.mode = r.get('mode', self.mode) self.details['level'] = r.get('level', 0) self.details['air_quality'] = r.get('airQuality', 'unknown') + self.current_firm_version = r.get('currentFirmVersion', self.current_firm_version) else: logger.debug('Error getting %s details', self.device_name) @@ -2539,6 +2542,8 @@ def build_humid_dict(self, dev_dict: Dict[str, str]) -> None: self.details['temperature'] = dev_dict.get('temperature', 0) self.details['display'] = dev_dict.get('screenSwitch', None) self.details['drying_mode'] = dev_dict.get('dryingMode', {}) + self.current_firm_version = r.get('currentFirmVersion', self.current_firm_version) + def build_config_dict(self, _): """Build configuration dict for humidifier."""