Add HomeConnect Freezer (#63851)
This commit is contained in:
parent
1421797c50
commit
efcae8bece
1 changed files with 11 additions and 0 deletions
|
@ -79,6 +79,8 @@ class ConfigEntryAuth(homeconnect.HomeConnectAPI):
|
||||||
device = FridgeFreezer(self.hass, app)
|
device = FridgeFreezer(self.hass, app)
|
||||||
elif app.type == "Refrigerator":
|
elif app.type == "Refrigerator":
|
||||||
device = Refrigerator(self.hass, app)
|
device = Refrigerator(self.hass, app)
|
||||||
|
elif app.type == "Freezer":
|
||||||
|
device = Freezer(self.hass, app)
|
||||||
elif app.type == "Oven":
|
elif app.type == "Oven":
|
||||||
device = Oven(self.hass, app)
|
device = Oven(self.hass, app)
|
||||||
elif app.type == "CoffeeMaker":
|
elif app.type == "CoffeeMaker":
|
||||||
|
@ -514,6 +516,15 @@ class Refrigerator(DeviceWithDoor):
|
||||||
return {"binary_sensor": [door_entity]}
|
return {"binary_sensor": [door_entity]}
|
||||||
|
|
||||||
|
|
||||||
|
class Freezer(DeviceWithDoor):
|
||||||
|
"""Freezer class."""
|
||||||
|
|
||||||
|
def get_entity_info(self):
|
||||||
|
"""Get a dictionary with infos about the associated entities."""
|
||||||
|
door_entity = self.get_door_entity()
|
||||||
|
return {"binary_sensor": [door_entity]}
|
||||||
|
|
||||||
|
|
||||||
class Hob(DeviceWithOpState, DeviceWithPrograms, DeviceWithRemoteControl):
|
class Hob(DeviceWithOpState, DeviceWithPrograms, DeviceWithRemoteControl):
|
||||||
"""Hob class."""
|
"""Hob class."""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue