Skip to content

Commit 4770711

Browse files
authored
Update number.py
1 parent caed14d commit 4770711

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

custom_components/solax_modbus/number.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ async def async_set_value(self, native_value: float) -> None:
158158
def modbus_data_updated(self) -> None:
159159
self.async_write_ha_state()
160160

161+
@property
162+
def should_poll(self) -> bool:
163+
"""Data is delivered by the hub."""
164+
return False
165+
161166
@property
162167
def name(self) -> str:
163168
"""Return the name."""

0 commit comments

Comments
 (0)