Skip to content

Commit 9b0975b

Browse files
authored
Fix rainmachine update entities missing display_precision (#129195)
1 parent 3a39a5c commit 9b0975b

File tree

1 file changed

+10
-1
lines changed
  • homeassistant/components/rainmachine

1 file changed

+10
-1
lines changed

homeassistant/components/rainmachine/update.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from dataclasses import dataclass
56
from enum import Enum
67
from typing import Any
78

@@ -10,6 +11,7 @@
1011
from homeassistant.components.update import (
1112
UpdateDeviceClass,
1213
UpdateEntity,
14+
UpdateEntityDescription,
1315
UpdateEntityFeature,
1416
)
1517
from homeassistant.core import HomeAssistant, callback
@@ -42,7 +44,14 @@ class UpdateStates(Enum):
4244
}
4345

4446

45-
UPDATE_DESCRIPTION = RainMachineEntityDescription(
47+
@dataclass(frozen=True, kw_only=True)
48+
class RainMachineUpdateEntityDescription(
49+
UpdateEntityDescription, RainMachineEntityDescription
50+
):
51+
"""Describe a RainMachine update."""
52+
53+
54+
UPDATE_DESCRIPTION = RainMachineUpdateEntityDescription(
4655
key="update",
4756
api_category=DATA_MACHINE_FIRMWARE_UPDATE_STATUS,
4857
)

0 commit comments

Comments
 (0)