Exclude static humidifier attributes from being recorded in the database (#69193)
This commit is contained in:
parent
e5fe18bdb1
commit
8de26e5085
2 changed files with 65 additions and 0 deletions
16
homeassistant/components/humidifier/recorder.py
Normal file
16
homeassistant/components/humidifier/recorder.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
"""Integration platform for recorder."""
|
||||
from __future__ import annotations
|
||||
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
|
||||
from . import ATTR_AVAILABLE_MODES, ATTR_MAX_HUMIDITY, ATTR_MIN_HUMIDITY
|
||||
|
||||
|
||||
@callback
|
||||
def exclude_attributes(hass: HomeAssistant) -> set[str]:
|
||||
"""Exclude static attributes from being recorded in the database."""
|
||||
return {
|
||||
ATTR_MIN_HUMIDITY,
|
||||
ATTR_MAX_HUMIDITY,
|
||||
ATTR_AVAILABLE_MODES,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue