Skip to content

Commit

Permalink
Merge 6f9e832 into 8ea0a8d
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrike committed Dec 13, 2018
2 parents 8ea0a8d + 6f9e832 commit 00620bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions homeassistant/components/binary_sensor/point.py
Expand Up @@ -7,8 +7,7 @@

import logging

from homeassistant.components.binary_sensor import (
DOMAIN as PARENT_DOMAIN, BinarySensorDevice)
from homeassistant.components.binary_sensor import DOMAIN, BinarySensorDevice
from homeassistant.components.point import MinutPointEntity
from homeassistant.components.point.const import (
DOMAIN as POINT_DOMAIN, POINT_DISCOVERY_NEW, SIGNAL_WEBHOOK)
Expand Down Expand Up @@ -49,7 +48,7 @@ async def async_discover_sensor(device_id):
for device_class in EVENTS), True)

async_dispatcher_connect(
hass, POINT_DISCOVERY_NEW.format(PARENT_DOMAIN, POINT_DOMAIN),
hass, POINT_DISCOVERY_NEW.format(DOMAIN, POINT_DOMAIN),
async_discover_sensor)


Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/sensor/point.py
Expand Up @@ -6,10 +6,10 @@
"""
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)
Expand Down Expand Up @@ -38,7 +38,7 @@ async def async_discover_sensor(device_id):
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)


Expand Down

0 comments on commit 00620bc

Please sign in to comment.