led-ble
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: led-ble | ||
| Version: 1.1.0 | ||
| Version: 1.1.1 | ||
| Summary: Control a wide range of LED BLE devices | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/bluetooth-devices/led-ble |
+1
-1
| [tool.poetry] | ||
| name = "led-ble" | ||
| version = "1.1.0" | ||
| version = "1.1.1" | ||
| description = "Control a wide range of LED BLE devices" | ||
@@ -5,0 +5,0 @@ authors = ["J. Nick Koston <nick@koston.org>"] |
| from __future__ import annotations | ||
| __version__ = "1.1.0" | ||
| __version__ = "1.1.1" | ||
@@ -5,0 +5,0 @@ |
@@ -198,5 +198,11 @@ from __future__ import annotations | ||
| assert self._protocol is not None # nosec | ||
| r, g, b = rgb | ||
| command = self._protocol.construct_levels_change( | ||
| True, *rgb, None, None, LevelWriteMode.COLORS | ||
| persist=True, | ||
| red=r, | ||
| green=g, | ||
| blue=b, | ||
| warm_white=None, | ||
| cool_white=None, | ||
| write_mode=LevelWriteMode.COLORS, | ||
| ) | ||
@@ -220,3 +226,3 @@ await self._send_command(command) | ||
| raise ValueError("Value {} is outside the valid range of 0-255") | ||
| rgbw = rgbw_brightness(rgbw, brightness) | ||
| r, g, b, w = rgbw_brightness(rgbw, brightness) | ||
| _LOGGER.debug("%s: Set rgbw after brightness: %s", self.name, rgbw) | ||
@@ -226,3 +232,9 @@ assert self._protocol is not None # nosec | ||
| command = self._protocol.construct_levels_change( | ||
| True, *rgbw, None, None, LevelWriteMode.ALL | ||
| persist=True, | ||
| red=r, | ||
| green=g, | ||
| blue=b, | ||
| warm_white=w, | ||
| cool_white=None, | ||
| write_mode=LevelWriteMode.ALL, | ||
| ) | ||
@@ -247,3 +259,9 @@ await self._send_command(command) | ||
| command = self._protocol.construct_levels_change( | ||
| True, 0, 0, 0, brightness, None, LevelWriteMode.WHITES | ||
| persist=True, | ||
| red=0, | ||
| green=0, | ||
| blue=0, | ||
| warm_white=brightness, | ||
| cool_white=None, | ||
| write_mode=LevelWriteMode.WHITES, | ||
| ) | ||
@@ -250,0 +268,0 @@ await self._send_command(command) |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
49814
0.84%704
2.77%