mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix modbus typing (#66872)
This commit is contained in:
@@ -358,7 +358,7 @@ class ModbusHub:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def _pymodbus_call(
|
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:
|
) -> ModbusResponse:
|
||||||
"""Call sync. pymodbus."""
|
"""Call sync. pymodbus."""
|
||||||
kwargs = {"unit": unit} if unit else {}
|
kwargs = {"unit": unit} if unit else {}
|
||||||
|
Reference in New Issue
Block a user