mirror of https://github.com/simbaja/ha_gehome.git
- 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:
parent
b01799ff78
commit
e9a2441df9
|
@ -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
|
||||
|
|
|
@ -12,12 +12,22 @@ _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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue