Skip to content

Commit

Permalink
Merge pull request #1876 from custom-components/dev
Browse files Browse the repository at this point in the history
chore: release 2023-03-07
  • Loading branch information
alandtse authored Mar 8, 2023
2 parents 997eb7f + c5bfbe8 commit 67fcd92
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/alexa_media/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
SensorStateClass,
)
from homeassistant.const import UnitOfTemperature, __version__ as HA_VERSION
from homeassistant.core import callback
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import ConfigEntryNotReady, NoEntitySpecifiedError
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.event import async_track_point_in_utc_time
Expand Down Expand Up @@ -626,6 +626,11 @@ def extra_state_attributes(self):
}
return attr

@callback
def exclude_attributes(hass: HomeAssistant) -> set[str]:
"""Exclude sorted_active and sorted_all from being recorded in the database."""
return {"sorted_active", "sorted_all"}


class AlarmSensor(AlexaMediaNotificationSensor):
"""Representation of a Alexa Alarm sensor."""
Expand Down

0 comments on commit 67fcd92

Please sign in to comment.