mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Add HomeConnect Refrigerator (#63850)
This commit is contained in:
parent
759b6fd9b2
commit
b7785eb188
@ -77,6 +77,8 @@ class ConfigEntryAuth(homeconnect.HomeConnectAPI):
|
||||
device = Dishwasher(self.hass, app)
|
||||
elif app.type == "FridgeFreezer":
|
||||
device = FridgeFreezer(self.hass, app)
|
||||
elif app.type == "Refrigerator":
|
||||
device = Refrigerator(self.hass, app)
|
||||
elif app.type == "Oven":
|
||||
device = Oven(self.hass, app)
|
||||
elif app.type == "CoffeeMaker":
|
||||
@ -501,6 +503,15 @@ class FridgeFreezer(DeviceWithDoor):
|
||||
return {"binary_sensor": [door_entity]}
|
||||
|
||||
|
||||
class Refrigerator(DeviceWithDoor):
|
||||
"""Refrigerator 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."""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user