mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Fix infrared receiver subscription for rx+tx consumers (#187385)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8c2911f971
commit
d84a2d3ffc
@@ -156,7 +156,9 @@ class InfraredConsumerEntity(Entity):
|
||||
self._infrared_availability[infrared_entity_id] = (
|
||||
ir_state is not None and ir_state.state != STATE_UNAVAILABLE
|
||||
)
|
||||
self._attr_available = all(self._infrared_availability.values())
|
||||
available = all(self._infrared_availability.values())
|
||||
if available != self.available:
|
||||
self._async_infrared_availability_changed(available)
|
||||
|
||||
remove_listener = async_track_state_change_event(
|
||||
self.hass, [infrared_entity_id], state_changed
|
||||
|
||||
Reference in New Issue
Block a user