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

View File

@ -2,6 +2,6 @@
"domain": "numato",
"name": "Numato USB GPIO Expander",
"documentation": "https://www.home-assistant.io/integrations/numato",
"requirements": ["numato-gpio==0.7.1"],
"requirements": ["numato-gpio==0.8.0"],
"codeowners": ["@clssn"]
}

View File

@ -975,7 +975,7 @@ nsw-fuel-api-client==1.0.10
nuheat==0.3.0
# homeassistant.components.numato
numato-gpio==0.7.1
numato-gpio==0.8.0
# homeassistant.components.iqvia
# homeassistant.components.opencv

View File

@ -452,7 +452,7 @@ nsw-fuel-api-client==1.0.10
nuheat==0.3.0
# homeassistant.components.numato
numato-gpio==0.7.1
numato-gpio==0.8.0
# homeassistant.components.iqvia
# homeassistant.components.opencv