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:
parent
c403c77cff
commit
428c376fe4
4 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ import logging
|
||||||
|
|
||||||
from numato_gpio import NumatoGpioError
|
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.const import DEVICE_DEFAULT_NAME
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect, dispatcher_send
|
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)
|
add_entities(binary_sensors, True)
|
||||||
|
|
||||||
|
|
||||||
class NumatoGpioBinarySensor(BinarySensorDevice):
|
class NumatoGpioBinarySensor(BinarySensorEntity):
|
||||||
"""Represents a binary sensor (input) port of a Numato GPIO expander."""
|
"""Represents a binary sensor (input) port of a Numato GPIO expander."""
|
||||||
|
|
||||||
def __init__(self, name, device_id, port, invert_logic, api):
|
def __init__(self, name, device_id, port, invert_logic, api):
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
"domain": "numato",
|
"domain": "numato",
|
||||||
"name": "Numato USB GPIO Expander",
|
"name": "Numato USB GPIO Expander",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/numato",
|
"documentation": "https://www.home-assistant.io/integrations/numato",
|
||||||
"requirements": ["numato-gpio==0.7.1"],
|
"requirements": ["numato-gpio==0.8.0"],
|
||||||
"codeowners": ["@clssn"]
|
"codeowners": ["@clssn"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -975,7 +975,7 @@ nsw-fuel-api-client==1.0.10
|
||||||
nuheat==0.3.0
|
nuheat==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.numato
|
# homeassistant.components.numato
|
||||||
numato-gpio==0.7.1
|
numato-gpio==0.8.0
|
||||||
|
|
||||||
# homeassistant.components.iqvia
|
# homeassistant.components.iqvia
|
||||||
# homeassistant.components.opencv
|
# homeassistant.components.opencv
|
||||||
|
|
|
@ -452,7 +452,7 @@ nsw-fuel-api-client==1.0.10
|
||||||
nuheat==0.3.0
|
nuheat==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.numato
|
# homeassistant.components.numato
|
||||||
numato-gpio==0.7.1
|
numato-gpio==0.8.0
|
||||||
|
|
||||||
# homeassistant.components.iqvia
|
# homeassistant.components.iqvia
|
||||||
# homeassistant.components.opencv
|
# homeassistant.components.opencv
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue