Skip to content

Commit 10d2d42

Browse files
committed
Fix time entity description typing
1 parent cb37766 commit 10d2d42

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • custom_components/solax_modbus

custom_components/solax_modbus/time.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
WRITE_DATA_LOCAL,
1919
WRITE_MULTISINGLE_MODBUS,
2020
WRITE_SINGLE_MODBUS,
21+
BaseModbusTimeEntityDescription,
2122
matches_modbus_protocol,
2223
)
2324

@@ -59,6 +60,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
5960
class SolaXModbusTimeEntity(TimeEntity):
6061
"""Representation of an SolaX Modbus time entity."""
6162

63+
entity_description: BaseModbusTimeEntityDescription
64+
6265
def __init__(
6366
self,
6467
platform_name: str,

0 commit comments

Comments
 (0)