mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-24 17:58:47 +02:00
updated Entity class names to reflect changes in HA 0.110 #44
This commit is contained in:
parent
55f8ad2fb4
commit
6671e60dfd
4 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import logging
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||
from homeassistant.components.binary_sensor import BinarySensorEntity
|
||||
from homeassistant.const import (
|
||||
CONF_NAME,
|
||||
ATTR_ATTRIBUTION,
|
||||
|
@ -80,7 +80,7 @@ def update_items(inst, mikrotik_controller, async_add_entities, sensors):
|
|||
async_add_entities(new_sensors, True)
|
||||
|
||||
|
||||
class MikrotikControllerBinarySensor(BinarySensorDevice):
|
||||
class MikrotikControllerBinarySensor(BinarySensorEntity):
|
||||
"""Define an Mikrotik Controller Binary Sensor."""
|
||||
|
||||
def __init__(self, mikrotik_controller, inst, sensor):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue