Skip to content

Commit

Permalink
Change to module function in statistics (home-assistant#132648)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST authored Dec 9, 2024
1 parent 72de5d0 commit 74eddce
Show file tree
Hide file tree
Showing 2 changed files with 375 additions and 264 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/statistics/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ async def get_state_characteristics(handler: SchemaCommonFlowHandler) -> vol.Sch
split_entity_id(handler.options[CONF_ENTITY_ID])[0] == BINARY_SENSOR_DOMAIN
)
if is_binary:
options = STATS_BINARY_SUPPORT
options = list(STATS_BINARY_SUPPORT)
else:
options = STATS_NUMERIC_SUPPORT
options = list(STATS_NUMERIC_SUPPORT)

return vol.Schema(
{
Expand Down
Loading

0 comments on commit 74eddce

Please sign in to comment.