mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
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,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):
|
||||
|
@ -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"]
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user