mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix modbus typing (#66872)
This commit is contained in:
parent
3770f4da5c
commit
c46728c2b2
@ -358,7 +358,7 @@ class ModbusHub:
|
||||
return True
|
||||
|
||||
def _pymodbus_call(
|
||||
self, unit: int, address: int, value: int | list[int], use_call: str
|
||||
self, unit: int | None, address: int, value: int | list[int], use_call: str
|
||||
) -> ModbusResponse:
|
||||
"""Call sync. pymodbus."""
|
||||
kwargs = {"unit": unit} if unit else {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user