Skip to content

Commit

Permalink
Merge f2587d9 into 01ee03a
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrike committed Nov 22, 2018
2 parents 01ee03a + f2587d9 commit 1df501a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion homeassistant/components/binary_sensor/point.py
Expand Up @@ -7,6 +7,7 @@

import logging

from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.components.point import MinutPointEntity
from homeassistant.components.point.const import (
DOMAIN as POINT_DOMAIN, NEW_DEVICE, SIGNAL_WEBHOOK)
Expand Down Expand Up @@ -45,7 +46,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
for device_class in EVENTS), True)


class MinutPointBinarySensor(MinutPointEntity):
class MinutPointBinarySensor(MinutPointEntity, BinarySensorDevice):
"""The platform class required by Home Assistant."""

def __init__(self, point_client, device_id, device_class):
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/point/__init__.py
Expand Up @@ -25,7 +25,7 @@
CONF_WEBHOOK_URL, DOMAIN, EVENT_RECEIVED, NEW_DEVICE, SCAN_INTERVAL,
SIGNAL_UPDATE_ENTITY, SIGNAL_WEBHOOK)

REQUIREMENTS = ['pypoint==1.0.5']
REQUIREMENTS = ['pypoint==1.0.6']
DEPENDENCIES = ['webhook']

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -113,8 +113,8 @@ async def async_setup_webhook(hass: HomeAssistantType, entry: ConfigEntry,
session.update_webhook(entry.data[CONF_WEBHOOK_URL],
entry.data[CONF_WEBHOOK_ID])

hass.components.webhook.async_register(entry.data[CONF_WEBHOOK_ID],
handle_webhook)
hass.components.webhook.async_register(
DOMAIN, 'Point', entry.data[CONF_WEBHOOK_ID], handle_webhook)


async def async_unload_entry(hass: HomeAssistantType, entry: ConfigEntry):
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -1099,7 +1099,7 @@ pyowm==2.9.0
pypjlink2==1.2.0

# homeassistant.components.point
pypoint==1.0.5
pypoint==1.0.6

# homeassistant.components.sensor.pollen
pypollencom==2.2.2
Expand Down

0 comments on commit 1df501a

Please sign in to comment.