Bump fjaraskupan to 2.3.0 (#114344)

Update fjarakupen to 2.3.0

- Support delayed disconnection
- Speed up on/off transitions
pull/114354/head
Joakim Plate 2024-03-28 06:57:02 +01:00 committed by GitHub
parent f4922edb4b
commit ae0b41f7a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View File

@ -54,13 +54,14 @@ class Light(CoordinatorEntity[FjaraskupanCoordinator], LightEntity):
async with self.coordinator.async_connect_and_update() as device:
if ATTR_BRIGHTNESS in kwargs:
await device.send_dim(int(kwargs[ATTR_BRIGHTNESS] * (100.0 / 255.0)))
elif not self.is_on:
await device.send_command(COMMAND_LIGHT_ON_OFF)
else:
await device.send_dim(100)
async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn the entity off."""
if self.is_on:
async with self.coordinator.async_connect_and_update() as device:
await device.send_dim(0)
await device.send_command(COMMAND_LIGHT_ON_OFF)
@property

View File

@ -14,5 +14,5 @@
"documentation": "https://www.home-assistant.io/integrations/fjaraskupan",
"iot_class": "local_polling",
"loggers": ["bleak", "fjaraskupan"],
"requirements": ["fjaraskupan==2.2.0"]
"requirements": ["fjaraskupan==2.3.0"]
}

View File

@ -864,7 +864,7 @@ fivem-api==0.1.2
fixerio==1.0.0a0
# homeassistant.components.fjaraskupan
fjaraskupan==2.2.0
fjaraskupan==2.3.0
# homeassistant.components.flexit_bacnet
flexit_bacnet==2.1.0

View File

@ -702,7 +702,7 @@ fitbit==0.3.1
fivem-api==0.1.2
# homeassistant.components.fjaraskupan
fjaraskupan==2.2.0
fjaraskupan==2.3.0
# homeassistant.components.flexit_bacnet
flexit_bacnet==2.1.0