mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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
@ -7,6 +7,7 @@ from pynobo import nobo
|
|||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_IP_ADDRESS, EVENT_HOMEASSISTANT_STOP, Platform
|
from homeassistant.const import CONF_IP_ADDRESS, EVENT_HOMEASSISTANT_STOP, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
from .const import CONF_AUTO_DISCOVERED, CONF_SERIAL, DOMAIN
|
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]
|
serial = entry.data[CONF_SERIAL]
|
||||||
discover = entry.data[CONF_AUTO_DISCOVERED]
|
discover = entry.data[CONF_AUTO_DISCOVERED]
|
||||||
ip_address = None if discover else entry.data[CONF_IP_ADDRESS]
|
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()
|
await hub.connect()
|
||||||
|
|
||||||
hass.data.setdefault(DOMAIN, {})
|
hass.data.setdefault(DOMAIN, {})
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/nobo_hub",
|
"documentation": "https://www.home-assistant.io/integrations/nobo_hub",
|
||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"iot_class": "local_push",
|
"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
|
pynetio==0.1.9.1
|
||||||
|
|
||||||
# homeassistant.components.nobo_hub
|
# homeassistant.components.nobo_hub
|
||||||
pynobo==1.6.0
|
pynobo==1.8.0
|
||||||
|
|
||||||
# homeassistant.components.nuki
|
# homeassistant.components.nuki
|
||||||
pynuki==1.6.3
|
pynuki==1.6.3
|
||||||
|
@ -1545,7 +1545,7 @@ pymysensors==0.24.0
|
|||||||
pynetgear==0.10.10
|
pynetgear==0.10.10
|
||||||
|
|
||||||
# homeassistant.components.nobo_hub
|
# homeassistant.components.nobo_hub
|
||||||
pynobo==1.6.0
|
pynobo==1.8.0
|
||||||
|
|
||||||
# homeassistant.components.nuki
|
# homeassistant.components.nuki
|
||||||
pynuki==1.6.3
|
pynuki==1.6.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user