Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions homeassistant/components/home_connect/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def get_devices(self):
device = FridgeFreezer(self.hass, app)
elif app.type == "Refrigerator":
device = Refrigerator(self.hass, app)
elif app.type == "Freezer":
device = Freezer(self.hass, app)
elif app.type == "Oven":
device = Oven(self.hass, app)
elif app.type == "CoffeeMaker":
Expand Down Expand Up @@ -514,6 +516,15 @@ def get_entity_info(self):
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):
"""Hob class."""

Expand Down