mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Push pyads to 3.0.7 (#21216)
* Push to pyads 3.0.7 * Correct too long line
This commit is contained in:
parent
b0f317743b
commit
df8589c36a
@ -9,7 +9,7 @@ from homeassistant.const import CONF_DEVICE, CONF_PORT, CONF_IP_ADDRESS, \
|
|||||||
EVENT_HOMEASSISTANT_STOP
|
EVENT_HOMEASSISTANT_STOP
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['pyads==2.2.6']
|
REQUIREMENTS = ['pyads==3.0.7']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -73,9 +73,10 @@ def setup(hass, config):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
ads = AdsHub(client)
|
ads = AdsHub(client)
|
||||||
except pyads.pyads.ADSError:
|
except pyads.ADSError:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Could not connect to ADS host (netid=%s, port=%s)", net_id, port)
|
"Could not connect to ADS host (netid=%s, ip=%s, port=%s)",
|
||||||
|
net_id, ip_address, port)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
hass.data[DATA_ADS] = ads
|
hass.data[DATA_ADS] = ads
|
||||||
@ -168,7 +169,7 @@ class AdsHub:
|
|||||||
self._notification_items[hnotify] = NotificationItem(
|
self._notification_items[hnotify] = NotificationItem(
|
||||||
hnotify, huser, name, plc_datatype, callback)
|
hnotify, huser, name, plc_datatype, callback)
|
||||||
|
|
||||||
def _device_notification_callback(self, addr, notification, huser):
|
def _device_notification_callback(self, notification, name):
|
||||||
"""Handle device notifications."""
|
"""Handle device notifications."""
|
||||||
contents = notification.contents
|
contents = notification.contents
|
||||||
|
|
||||||
|
@ -916,7 +916,7 @@ pyW800rf32==0.1
|
|||||||
# py_noaa==0.3.0
|
# py_noaa==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.ads
|
# homeassistant.components.ads
|
||||||
pyads==2.2.6
|
pyads==3.0.7
|
||||||
|
|
||||||
# homeassistant.components.sensor.aftership
|
# homeassistant.components.sensor.aftership
|
||||||
pyaftership==0.1.2
|
pyaftership==0.1.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user