Extract base entity class in Plugwise (#65821)

This commit is contained in:
Franck Nijhof 2022-02-05 19:09:37 +01:00 committed by GitHub
parent b0bb2d2453
commit 87049283c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 85 deletions

View file

@ -19,7 +19,7 @@ from .const import (
NO_NOTIFICATION_ICON,
NOTIFICATION_ICON,
)
from .gateway import SmileGateway
from .entity import PlugwiseEntity
BINARY_SENSOR_MAP = {
"dhw_state": ["Domestic Hot Water State", None],
@ -77,7 +77,7 @@ async def async_setup_entry(
async_add_entities(entities, True)
class SmileBinarySensor(SmileGateway, BinarySensorEntity):
class SmileBinarySensor(PlugwiseEntity, BinarySensorEntity):
"""Represent Smile Binary Sensors."""
def __init__(