github lasswellt/govee-homeassistant v2026.3.4

latest releases: v2026.6.13, v2026.6.12, v2026.6.11...
3 months ago

Fix: Scene "None" restores previous color instead of black (#18)

Bug: Selecting "None" in the scene dropdown set the light to black instead of restoring the previous color.

Root cause:

  1. last_color / last_color_temp_kelvin were lost during API poll cycles — _fetch_device_state() didn't preserve them from existing state
  2. async_clear_scene() fell back to None instead of last_color when rejecting RGBColor(0,0,0) returned by the API during scenes

Fix:

  • Preserve last_color, last_color_temp_kelvin, last_scene_id, last_scene_name across API polls as "memory" fields (unconditional, no power-state gating)
  • Fall back to state.last_color instead of None when rejecting black in scene clear
  • Added 4 new tests covering preservation and end-to-end flow

Don't miss a new govee-homeassistant release

NewReleases is sending notifications on new releases.