mirror of https://github.com/simbaja/ha_gehome.git
- updated cooktop detection in oven device
This commit is contained in:
parent
9f116aa2ab
commit
5aad65e537
|
@ -31,7 +31,10 @@ class OvenApi(ApplianceApi):
|
||||||
def get_all_entities(self) -> List[Entity]:
|
def get_all_entities(self) -> List[Entity]:
|
||||||
base_entities = super().get_all_entities()
|
base_entities = super().get_all_entities()
|
||||||
oven_config: OvenConfiguration = self.appliance.get_erd_value(ErdCode.OVEN_CONFIGURATION)
|
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"Oven Config: {oven_config}")
|
||||||
_LOGGER.debug(f"Cooktop Config: {cooktop_config}")
|
_LOGGER.debug(f"Cooktop Config: {cooktop_config}")
|
||||||
|
|
Loading…
Reference in New Issue