File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
homeassistant/components/rainmachine Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ from dataclasses import dataclass
56from enum import Enum
67from typing import Any
78
1011from homeassistant .components .update import (
1112 UpdateDeviceClass ,
1213 UpdateEntity ,
14+ UpdateEntityDescription ,
1315 UpdateEntityFeature ,
1416)
1517from 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)
You can’t perform that action at this time.
0 commit comments