Fix point sensor discovery (#19245)

This commit is contained in:
Fredrik Erlandsson authored and Martin Hjelmare committed 2018-12-13 16:40:56 +01:00
1 parent 0fa7186296
commit 9f790325bb
2 files changed
+5 -6

No files matched your search

+3 -3
View File
@@ -6,10 +6,10 @@ https://home-assistant.io/components/sensor.point/
"""
import logging
from homeassistant.components.point import (
DOMAIN as PARENT_DOMAIN, MinutPointEntity)
from homeassistant.components.point import MinutPointEntity
from homeassistant.components.point.const import (
DOMAIN as POINT_DOMAIN, POINT_DISCOVERY_NEW)
from homeassistant.components.sensor import DOMAIN
from homeassistant.const import (
DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_PRESSURE, DEVICE_CLASS_TEMPERATURE,
TEMP_CELSIUS)
@@ -38,7 +38,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
for sensor_type in SENSOR_TYPES), True)
async_dispatcher_connect(
hass, POINT_DISCOVERY_NEW.format(PARENT_DOMAIN, POINT_DOMAIN),
hass, POINT_DISCOVERY_NEW.format(DOMAIN, POINT_DOMAIN),
async_discover_sensor)