- add preliminary dryer support, update manifest for version, change entity version to display applicance SW version and not the wifi SW version

This commit is contained in:
Warren Rees 2021-05-18 14:13:29 -04:00
parent b01799ff78
commit e9a2441df9
3 changed files with 15 additions and 5 deletions

View File

@ -81,7 +81,7 @@ class ApplianceApi:
"name": self.name,
"manufacturer": "GE",
"model": self.model_number,
"sw_version": self.appliance.get_erd_value(ErdCode.WIFI_MODULE_SW_VERSION),
"sw_version": self.appliance.get_erd_value(ErdCode.APPLIANCE_SW_VERSION),
}
@property
@ -114,4 +114,4 @@ class ApplianceApi:
return self.appliance.get_erd_value(code)
except:
return None

View File

@ -12,14 +12,24 @@ _LOGGER = logging.getLogger(__name__)
class DryerApi(ApplianceApi):
"""API class for dryer objects"""
APPLIANCE_TYPE = ErdApplianceType.WASHER
APPLIANCE_TYPE = ErdApplianceType.DRYER
def get_all_entities(self) -> List[Entity]:
base_entities = super().get_all_entities()
dryer_entities = [
GeErdSensor(self, ErdCode.LAUNDRY_MACHINE_STATE),
GeErdSensor(self, ErdCode.LAUNDRY_MACHINE_SUBCYCLE),
GeErdBinarySensor(self, ErdCode.LAUNDRY_END_OF_CYCLE),
GeErdSensor(self, ErdCode.LAUNDRY_TIME_REMAINING),
GeErdSensor(self, ErdCode.LAUNDRY_CYCLE),
GeErdSensor(self, ErdCode.LAUNDRY_DELAY_TIME_REMAINING),
GeErdSensor(self, ErdCode.LAUNDRY_DOOR),
GeErdSensor(self, ErdCode.LAUNDRY_DRYNESSNEW_LEVEL),
GeErdSensor(self, ErdCode.LAUNDRY_TEMPERATURENEW_OPTION),
GeErdBinarySensor(self, ErdCode.LAUNDRY_REMOTE_STATUS)
]
entities = base_entities + dryer_entities
return entities

View File

@ -4,6 +4,6 @@
"config_flow": true,
"documentation": "https://github.com/simbaja/ha_components",
"requirements": ["gekitchensdk==0.3.11","magicattr==0.1.5"],
"codeowners": ["@simbaja"]
"codeowners": ["@simbaja"],
"version": "0.3.11"
}