Avoid changing local time on Nobø Ecohub (#114332)
nobo_hub: Pass timezone to avoid changing local time on Nobø Ecohub in handshake
This commit is contained in:
parent
f80e319a4d
commit
596436d679
4 changed files with 11 additions and 4 deletions
|
@ -7,6 +7,7 @@ from pynobo import nobo
|
|||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_IP_ADDRESS, EVENT_HOMEASSISTANT_STOP, Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from .const import CONF_AUTO_DISCOVERED, CONF_SERIAL, DOMAIN
|
||||
|
||||
|
@ -19,7 +20,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
serial = entry.data[CONF_SERIAL]
|
||||
discover = entry.data[CONF_AUTO_DISCOVERED]
|
||||
ip_address = None if discover else entry.data[CONF_IP_ADDRESS]
|
||||
hub = nobo(serial=serial, ip=ip_address, discover=discover, synchronous=False)
|
||||
hub = nobo(
|
||||
serial=serial,
|
||||
ip=ip_address,
|
||||
discover=discover,
|
||||
synchronous=False,
|
||||
timezone=dt_util.DEFAULT_TIME_ZONE,
|
||||
)
|
||||
await hub.connect()
|
||||
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"documentation": "https://www.home-assistant.io/integrations/nobo_hub",
|
||||
"integration_type": "hub",
|
||||
"iot_class": "local_push",
|
||||
"requirements": ["pynobo==1.6.0"]
|
||||
"requirements": ["pynobo==1.8.0"]
|
||||
}
|
||||
|
|
|
@ -1991,7 +1991,7 @@ pynetgear==0.10.10
|
|||
pynetio==0.1.9.1
|
||||
|
||||
# homeassistant.components.nobo_hub
|
||||
pynobo==1.6.0
|
||||
pynobo==1.8.0
|
||||
|
||||
# homeassistant.components.nuki
|
||||
pynuki==1.6.3
|
||||
|
|
|
@ -1545,7 +1545,7 @@ pymysensors==0.24.0
|
|||
pynetgear==0.10.10
|
||||
|
||||
# homeassistant.components.nobo_hub
|
||||
pynobo==1.6.0
|
||||
pynobo==1.8.0
|
||||
|
||||
# homeassistant.components.nuki
|
||||
pynuki==1.6.3
|
||||
|
|
Loading…
Add table
Reference in a new issue