mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-10-28 06:07:13 +01:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d00ed120d8
commit
eef4d2c379
2 changed files with 9 additions and 2 deletions
|
|
@ -86,6 +86,7 @@ The attributes are absent when the Adaptive Lighting switch is off. Use a fallba
|
|||
- [:exclamation: Common Problems & Solutions](#exclamation-common-problems--solutions)
|
||||
- [:bulb: Lights Only Adapt After Reloading](#bulb-lights-only-adapt-after-reloading)
|
||||
- [:bulb: Lights Not Responding or Turning On by Themselves](#bulb-lights-not-responding-or-turning-on-by-themselves)
|
||||
- [Color-temperature lights incorrectly detected as manually controlled](#color-temperature-lights-incorrectly-detected-as-manually-controlled)
|
||||
- [:signal_strength: WiFi Networks](#signal_strength-wifi-networks)
|
||||
- [:spider_web: Zigbee, Z-Wave, and Other Mesh Networks](#spider_web-zigbee-z-wave-and-other-mesh-networks)
|
||||
- [:rainbow: Light Colors Not Matching](#rainbow-light-colors-not-matching)
|
||||
|
|
|
|||
|
|
@ -38,7 +38,10 @@ def test_equivalent_color_readback(kelvin, reverse):
|
|||
|
||||
# Existing behavior, including Hue scene mode changes, is the default.
|
||||
assert _attributes_have_changed(
|
||||
"light.test", old.copy(), new.copy(), Context(),
|
||||
"light.test",
|
||||
old.copy(),
|
||||
new.copy(),
|
||||
Context(),
|
||||
) == (LightControlAttributes.COLOR)
|
||||
assert (
|
||||
_attributes_have_changed(
|
||||
|
|
@ -88,7 +91,10 @@ def test_observed_homekit_readback():
|
|||
old = {ATTR_BRIGHTNESS: 115, ATTR_COLOR_TEMP_KELVIN: 2127}
|
||||
new = {ATTR_BRIGHTNESS: 114.75, ATTR_RGB_COLOR: (255, 142, 28)}
|
||||
assert _attributes_have_changed(
|
||||
"light.test", old.copy(), new.copy(), Context(),
|
||||
"light.test",
|
||||
old.copy(),
|
||||
new.copy(),
|
||||
Context(),
|
||||
) == (LightControlAttributes.COLOR)
|
||||
assert (
|
||||
_attributes_have_changed(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue