Skip to content

Commit

Permalink
Change this to pull in SensorEntity, I think this is right..
Browse files Browse the repository at this point in the history
  • Loading branch information
garbled1 committed Oct 16, 2021
1 parent 8a3a338 commit d3143eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/ecowitt/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from . import EcowittEntity, async_add_ecowitt_entities
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.components.sensor import SensorEntity
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from .const import (
DOMAIN,
Expand Down Expand Up @@ -35,7 +36,7 @@ def add_entities(discovery_info=None):
add_entities(hass.data[DOMAIN][entry.entry_id][REG_ENTITIES][TYPE_SENSOR])


class EcowittSensor(EcowittEntity):
class EcowittSensor(EcowittEntity, SensorEntity):

def __init__(self, hass, entry, key, name, dc, uom, icon, sc):
"""Initialize the sensor."""
Expand Down

0 comments on commit d3143eb

Please sign in to comment.