[light] Address Copilot review feedback on PR #15726

- mock_addressable_light.h: add direct <memory>/<cstdint>/<cstddef> includes
- test: use asyncio.get_running_loop() instead of deprecated get_event_loop()
- test: rebase timing to command-issue time (not first-nonzero) and use
  absolute progress for assertion 2, so late-transition check can't skew
  when the first nonzero sample happens to land near the assertion-1 limit
This commit is contained in:
J. Nick Koston
2026-04-13 14:53:17 -10:00
parent 93893e02a7
commit 32130e1cb1
2 changed files with 34 additions and 37 deletions
@@ -1,5 +1,9 @@
#pragma once
#include <cstddef>
#include <cstdint>
#include <memory>
#include "esphome/components/light/addressable_light.h"
#include "esphome/core/component.h"