Skip to content

Commit

Permalink
Merge pull request #110 from custom-components/revert-108-patch-1
Browse files Browse the repository at this point in the history
Revert "Update BinarySensorDevice to BinarySensorEntity"
  • Loading branch information
isabellaalstrom authored Nov 18, 2020
2 parents 584fa44 + 19f6830 commit f0caf2c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions custom_components/grocy/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
"""Binary sensor platform for Grocy."""
import logging
try:
from homeassistant.components.binary_sensor import BinarySensorEntity
except ImportError:
from homeassistant.components.binary_sensor import (
BinarySensorDevice as BinarySensorEntity,
)
from homeassistant.components.binary_sensor import BinarySensorDevice

# pylint: disable=relative-beyond-top-level
from .const import (
Expand Down Expand Up @@ -38,7 +33,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
async_add_entities(entities, True)


class GrocyBinarySensor(GrocyEntity, BinarySensorEntity):
class GrocyBinarySensor(GrocyEntity, BinarySensorDevice):
"""Grocy binary_sensor class."""

@property
Expand Down

0 comments on commit f0caf2c

Please sign in to comment.