Updated own integrations for new HA version
This commit is contained in:
@@ -4,7 +4,7 @@ from collections import defaultdict
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT, CONF_NAME
|
||||
from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA
|
||||
from homeassistant.components.switch import SwitchEntity, PLATFORM_SCHEMA
|
||||
from aiohttp import ClientConnectionError
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ class SispmctlHost:
|
||||
await switch.set_state(on=None, reachable=False)
|
||||
|
||||
|
||||
class HttpSispmctlSwitch(SwitchDevice):
|
||||
class HttpSispmctlSwitch(SwitchEntity):
|
||||
def __init__(self, basename, number):
|
||||
self._basename = basename
|
||||
self._number = number
|
||||
|
||||
Reference in New Issue
Block a user