Skip to content

Commit

Permalink
fix: restore Amazon air quality monitor entities (#2758)
Browse files Browse the repository at this point in the history
closes #2756
  • Loading branch information
alams154 authored Dec 22, 2024
1 parent 7952c89 commit bc8ffcd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/alexa_media/alexa_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ def is_alexa_guard(appliance: dict[str, Any]) -> bool:

def is_temperature_sensor(appliance: dict[str, Any]) -> bool:
"""Is the given appliance the temperature sensor of an Echo."""
return is_local(appliance) and has_capability(
appliance, "Alexa.TemperatureSensor", "temperature"
return (
is_local(appliance)
and has_capability(appliance, "Alexa.TemperatureSensor", "temperature")
and appliance["friendlyDescription"] != "Amazon Indoor Air Quality Monitor"
)


Expand Down

0 comments on commit bc8ffcd

Please sign in to comment.