[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-09-27 21:01:35 +00:00
commit eef4d2c379
2 changed files with 9 additions and 2 deletions

View file

@ -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)

View file

@ -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(