Update numato-gpio to 0.8.0 (#38415)

* Bump the numato-gpio dependency

This relaxes the pyserial dependency to >=3.1.1 as requested by the
project with respect to the upcoming, stricter pip resolver.

* Update numato-gpio due to deprecation of class BinarySensorDevice
This commit is contained in:
clssn authored and GitHub committed 2020-08-02 16:35:21 -05:00
1 parent c403c77cff
commit 428c376fe4
4 files changed
+5 -5

No files matched your search

@@ -4,7 +4,7 @@ import logging
from numato_gpio import NumatoGpioError
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.components.binary_sensor import BinarySensorEntity
from homeassistant.const import DEVICE_DEFAULT_NAME
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect, dispatcher_send
@@ -63,7 +63,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
add_entities(binary_sensors, True)
class NumatoGpioBinarySensor(BinarySensorDevice):
class NumatoGpioBinarySensor(BinarySensorEntity):
"""Represents a binary sensor (input) port of a Numato GPIO expander."""
def __init__(self, name, device_id, port, invert_logic, api):