lifx-async 4.6.0__py3-none-any.whl → 4.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lifx/devices/ceiling.py +6 -2
- {lifx_async-4.6.0.dist-info → lifx_async-4.6.1.dist-info}/METADATA +1 -1
- {lifx_async-4.6.0.dist-info → lifx_async-4.6.1.dist-info}/RECORD +5 -5
- {lifx_async-4.6.0.dist-info → lifx_async-4.6.1.dist-info}/WHEEL +0 -0
- {lifx_async-4.6.0.dist-info → lifx_async-4.6.1.dist-info}/licenses/LICENSE +0 -0
lifx/devices/ceiling.py
CHANGED
|
@@ -242,8 +242,12 @@ class CeilingLight(MatrixLight):
|
|
|
242
242
|
state = cast(CeilingLightState, self._state)
|
|
243
243
|
state.uplight_color = uplight_color
|
|
244
244
|
state.downlight_colors = downlight_colors
|
|
245
|
-
state.uplight_is_on =
|
|
246
|
-
|
|
245
|
+
state.uplight_is_on = bool(
|
|
246
|
+
self.state.power > 0 and uplight_color.brightness > 0
|
|
247
|
+
)
|
|
248
|
+
state.downlight_is_on = bool(
|
|
249
|
+
self.state.power > 0 and any(c.brightness > 0 for c in downlight_colors)
|
|
250
|
+
)
|
|
247
251
|
|
|
248
252
|
@classmethod
|
|
249
253
|
async def from_ip(
|
|
@@ -6,7 +6,7 @@ lifx/exceptions.py,sha256=pikAMppLn7gXyjiQVWM_tSvXKNh-g366nG_UWyqpHhc,815
|
|
|
6
6
|
lifx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
lifx/devices/__init__.py,sha256=4b5QtO0EFWxIqN2lUYgM8uLjWyHI5hUcReiF9QCjCGw,1061
|
|
8
8
|
lifx/devices/base.py,sha256=0G2PCJRNeIPkMCIw68x0ijn6gUIwh2jFlex8SN4Hs1Y,63530
|
|
9
|
-
lifx/devices/ceiling.py,sha256=
|
|
9
|
+
lifx/devices/ceiling.py,sha256=qXZeTGAnPbKpnMyEOI2DsffC9HddmWzsW_Q_Fnkpwkw,33087
|
|
10
10
|
lifx/devices/hev.py,sha256=T5hvt2q_vdgPBvThx_-M7n5pZu9pL0y9Fs3Zz_KL0NM,15588
|
|
11
11
|
lifx/devices/infrared.py,sha256=ePk9qxX_s-hv5gQMvio1Vv8FYiCd68HF0ySbWgSrvuU,8130
|
|
12
12
|
lifx/devices/light.py,sha256=gk92lhViUWINGaxDWbs4qn8Stnn2fGCfRkC5Kk0Q-hI,34087
|
|
@@ -42,7 +42,7 @@ lifx/theme/canvas.py,sha256=4h7lgN8iu_OdchObGDgbxTqQLCb-FRKC-M-YCWef_i4,8048
|
|
|
42
42
|
lifx/theme/generators.py,sha256=nq3Yvntq_h-eFHbmmow3LcAdA_hEbRRaP5mv9Bydrjk,6435
|
|
43
43
|
lifx/theme/library.py,sha256=tKlKZNqJp8lRGDnilWyDm_Qr1vCRGGwuvWVS82anNpQ,21326
|
|
44
44
|
lifx/theme/theme.py,sha256=qMEx_8E41C0Cc6f083XHiAXEglTv4YlXW0UFsG1rQKg,5521
|
|
45
|
-
lifx_async-4.6.
|
|
46
|
-
lifx_async-4.6.
|
|
47
|
-
lifx_async-4.6.
|
|
48
|
-
lifx_async-4.6.
|
|
45
|
+
lifx_async-4.6.1.dist-info/METADATA,sha256=bjtJ7SbLYx_SKkUzvEZqWaPJqqGrDG8aiLyqim1AbSE,2609
|
|
46
|
+
lifx_async-4.6.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
47
|
+
lifx_async-4.6.1.dist-info/licenses/LICENSE,sha256=eBz48GRA3gSiWn3rYZAz2Ewp35snnhV9cSqkVBq7g3k,1832
|
|
48
|
+
lifx_async-4.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|