Merge pull request #4 from joelmoses/dev

Update fridge.py to change Hot Water in-use to a binary sensor
This commit is contained in:
Joel Moses 2021-02-11 12:17:41 -08:00 committed by GitHub
commit 4a4c311337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@ from gekitchensdk import (
from .base import ApplianceApi
from ..entities import (
GeErdSensor,
GeErdSensor,
GeErdBinarySensor,
GeErdSwitch,
GeFridge,
GeFreezer,
@ -88,7 +89,7 @@ class FridgeApi(ApplianceApi):
# Dispenser entities
if(hot_water_status and hot_water_status.status != ErdHotWaterStatus.NA):
dispenser_entities.extend([
GeErdSensor(self, ErdCode.HOT_WATER_IN_USE),
GeErdBinarySensor(self, ErdCode.HOT_WATER_IN_USE),
GeErdSensor(self, ErdCode.HOT_WATER_SET_TEMP),
GeErdPropertySensor(self, ErdCode.HOT_WATER_STATUS, "status"),
GeErdPropertySensor(self, ErdCode.HOT_WATER_STATUS, "time_until_ready", icon_override="mdi:timer-outline"),