Skip to content
Snippets Groups Projects
Unverified Commit ae0b41f7 authored by Joakim Plate's avatar Joakim Plate Committed by GitHub
Browse files

Bump fjaraskupan to 2.3.0 (#114344)

Update fjarakupen to 2.3.0

- Support delayed disconnection
- Speed up on/off transitions
parent f4922edb
No related branches found
No related tags found
No related merge requests found
...@@ -54,13 +54,14 @@ class Light(CoordinatorEntity[FjaraskupanCoordinator], LightEntity): ...@@ -54,13 +54,14 @@ class Light(CoordinatorEntity[FjaraskupanCoordinator], LightEntity):
async with self.coordinator.async_connect_and_update() as device: async with self.coordinator.async_connect_and_update() as device:
if ATTR_BRIGHTNESS in kwargs: if ATTR_BRIGHTNESS in kwargs:
await device.send_dim(int(kwargs[ATTR_BRIGHTNESS] * (100.0 / 255.0))) await device.send_dim(int(kwargs[ATTR_BRIGHTNESS] * (100.0 / 255.0)))
elif not self.is_on: else:
await device.send_command(COMMAND_LIGHT_ON_OFF) await device.send_dim(100)
async def async_turn_off(self, **kwargs: Any) -> None: async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn the entity off.""" """Turn the entity off."""
if self.is_on: if self.is_on:
async with self.coordinator.async_connect_and_update() as device: async with self.coordinator.async_connect_and_update() as device:
await device.send_dim(0)
await device.send_command(COMMAND_LIGHT_ON_OFF) await device.send_command(COMMAND_LIGHT_ON_OFF)
@property @property
......
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"documentation": "https://www.home-assistant.io/integrations/fjaraskupan", "documentation": "https://www.home-assistant.io/integrations/fjaraskupan",
"iot_class": "local_polling", "iot_class": "local_polling",
"loggers": ["bleak", "fjaraskupan"], "loggers": ["bleak", "fjaraskupan"],
"requirements": ["fjaraskupan==2.2.0"] "requirements": ["fjaraskupan==2.3.0"]
} }
...@@ -864,7 +864,7 @@ fivem-api==0.1.2 ...@@ -864,7 +864,7 @@ fivem-api==0.1.2
fixerio==1.0.0a0 fixerio==1.0.0a0
# homeassistant.components.fjaraskupan # homeassistant.components.fjaraskupan
fjaraskupan==2.2.0 fjaraskupan==2.3.0
# homeassistant.components.flexit_bacnet # homeassistant.components.flexit_bacnet
flexit_bacnet==2.1.0 flexit_bacnet==2.1.0
......
...@@ -702,7 +702,7 @@ fitbit==0.3.1 ...@@ -702,7 +702,7 @@ fitbit==0.3.1
fivem-api==0.1.2 fivem-api==0.1.2
# homeassistant.components.fjaraskupan # homeassistant.components.fjaraskupan
fjaraskupan==2.2.0 fjaraskupan==2.3.0
# homeassistant.components.flexit_bacnet # homeassistant.components.flexit_bacnet
flexit_bacnet==2.1.0 flexit_bacnet==2.1.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment