Skip to content

Commit 8bd0ff7

Browse files
authored
Replace has_mean with mean_type in mill external statistics (home-assistant#153985)
1 parent ac676e1 commit 8bd0ff7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

homeassistant/components/mill/coordinator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
from mill_local import Mill as MillLocal
1111

1212
from homeassistant.components.recorder import get_instance
13-
from homeassistant.components.recorder.models import StatisticData, StatisticMetaData
13+
from homeassistant.components.recorder.models import (
14+
StatisticData,
15+
StatisticMeanType,
16+
StatisticMetaData,
17+
)
1418
from homeassistant.components.recorder.statistics import (
1519
async_add_external_statistics,
1620
get_last_statistics,
@@ -147,7 +151,7 @@ async def _async_update_data(self):
147151
)
148152
)
149153
metadata = StatisticMetaData(
150-
has_mean=False,
154+
mean_type=StatisticMeanType.NONE,
151155
has_sum=True,
152156
name=f"{heater.name}",
153157
source=DOMAIN,

0 commit comments

Comments
 (0)