mirror of
https://github.com/home-assistant/core.git
synced 2026-08-19 21:01:05 +01:00
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