Closed TheJulianJES closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.37%. Comparing base (
378e536
) to head (2289a26
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Currently, we need the "whole state" for maybe_emit_state_changed_event
(and maybe elsewhere?): https://github.com/zigpy/zha/blob/378e53641d02a450a99a67dccf79e97324196d77/zha/application/platforms/__init__.py#L249-L250
The naming of the individual entries seems to be a bit inconsistent though. Sometimes, the "on/off" state is called "on"
. But most of the times, like here, it's just "state"
. I guess because that's the only real state of the entity, while light has more "states".
This adds a
is_on
property to the siren platform to align it with the rest of the on/off platforms we have. The change will allow us to address this comment: https://github.com/home-assistant/core/pull/120190#discussion_r1667428899The added property is used in the
state
property, like done by other platforms (and thus covered by tests already).