- updated cooktop detection in oven device

This commit is contained in:
Jack Simbach 2021-07-20 14:08:59 -04:00
parent 9f116aa2ab
commit 5aad65e537
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ class OvenApi(ApplianceApi):
def get_all_entities(self) -> List[Entity]:
base_entities = super().get_all_entities()
oven_config: OvenConfiguration = self.appliance.get_erd_value(ErdCode.OVEN_CONFIGURATION)
cooktop_config: ErdCooktopConfig = self.appliance.get_erd_value(ErdCode.COOKTOP_CONFIG)
cooktop_config = ErdCooktopConfig.NONE
if self.has_erd_code(ErdCode.COOKTOP_CONFIG):
cooktop_config: ErdCooktopConfig = self.appliance.get_erd_value(ErdCode.COOKTOP_CONFIG)
_LOGGER.debug(f"Oven Config: {oven_config}")
_LOGGER.debug(f"Cooktop Config: {cooktop_config}")