We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac676e1 commit 8bd0ff7Copy full SHA for 8bd0ff7
homeassistant/components/mill/coordinator.py
@@ -10,7 +10,11 @@
10
from mill_local import Mill as MillLocal
11
12
from homeassistant.components.recorder import get_instance
13
-from homeassistant.components.recorder.models import StatisticData, StatisticMetaData
+from homeassistant.components.recorder.models import (
14
+ StatisticData,
15
+ StatisticMeanType,
16
+ StatisticMetaData,
17
+)
18
from homeassistant.components.recorder.statistics import (
19
async_add_external_statistics,
20
get_last_statistics,
@@ -147,7 +151,7 @@ async def _async_update_data(self):
147
151
)
148
152
149
153
metadata = StatisticMetaData(
150
- has_mean=False,
154
+ mean_type=StatisticMeanType.NONE,
155
has_sum=True,
156
name=f"{heater.name}",
157
source=DOMAIN,
0 commit comments