Merge pull request #8 from warrenrees/pr1

Preliminary Dryer support, manifest version fix, update entity version to use applicance SW version
This commit is contained in:
simbaja 2021-05-19 21:38:57 -04:00 committed by GitHub
commit 5d520e5ac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"
}