Files
core/tests
Claude 8a84eb48cb Use the entity service helper for all xiaomi_miio services
Address review feedback. The platform entity lookup resolves every
xiaomi_miio entity of a domain, not just the ones the old dispatcher
tracked in its data key, so the gateway lights, the eyecare ambient
light and the coordinated and gateway switches were reachable without
implementing the methods, raising AttributeError.

The helper accepts a callable, so a handler that skips entities without
the method keeps the behaviour of the old dispatcher while gaining the
context and the entity permissions. All fourteen services now use it,
and the data keys they dispatched through are gone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQdoLT4SC1w5LUgDQA3vEq
2026-08-19 09:34:06 +00:00
..
2026-08-18 14:42:24 +02:00