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 2020-08-02 23:35:21 +02:00 committed by GitHub
parent c403c77cff
commit 428c376fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -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):