mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 23:41:48 -05:00
Update govee lights local library to version 3.0.1 (#181204)
This commit is contained in:
@@ -25,7 +25,7 @@ async def _async_discover(hass: HomeAssistant, adapter_ip: str) -> bool:
|
||||
controller: GoveeController = GoveeController(
|
||||
loop=hass.loop,
|
||||
logger=_LOGGER,
|
||||
listening_address=adapter_ip,
|
||||
listening_addresses=adapter_ip,
|
||||
broadcast_address=CONF_MULTICAST_ADDRESS_DEFAULT,
|
||||
broadcast_port=CONF_TARGET_PORT_DEFAULT,
|
||||
listening_port=CONF_LISTENING_PORT_DEFAULT,
|
||||
|
||||
@@ -46,7 +46,7 @@ class GoveeLocalApiCoordinator(DataUpdateCoordinator[list[GoveeDevice]]):
|
||||
GoveeController(
|
||||
loop=hass.loop,
|
||||
logger=_LOGGER,
|
||||
listening_address=source_ip,
|
||||
listening_addresses=source_ip,
|
||||
broadcast_address=CONF_MULTICAST_ADDRESS_DEFAULT,
|
||||
broadcast_port=CONF_TARGET_PORT_DEFAULT,
|
||||
listening_port=CONF_LISTENING_PORT_DEFAULT,
|
||||
|
||||
@@ -129,7 +129,7 @@ class GoveeLight(CoordinatorEntity[GoveeLocalApiCoordinator], LightEntity):
|
||||
"""
|
||||
if not super().available:
|
||||
return False
|
||||
return dt_util.naive_now() - self._device.lastseen < DEVICE_TIMEOUT
|
||||
return dt_util.utcnow() - self._device.lastseen < DEVICE_TIMEOUT
|
||||
|
||||
@property
|
||||
@override
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
"dependencies": ["network"],
|
||||
"documentation": "https://www.home-assistant.io/integrations/govee_light_local",
|
||||
"iot_class": "local_push",
|
||||
"requirements": ["govee-local-api==2.4.0"]
|
||||
"requirements": ["govee-local-api==3.0.1"]
|
||||
}
|
||||
|
||||
Generated
+1
-1
@@ -1196,7 +1196,7 @@ gotailwind==0.4.0
|
||||
govee-ble==1.4.0
|
||||
|
||||
# homeassistant.components.govee_light_local
|
||||
govee-local-api==2.4.0
|
||||
govee-local-api==3.0.1
|
||||
|
||||
# homeassistant.components.remote_rpi_gpio
|
||||
gpiozero==1.6.2
|
||||
|
||||
Reference in New Issue
Block a user