Skip to content

Commit b5ae1ef

Browse files
committed
- Fix import error
1 parent 56ac8d9 commit b5ae1ef

File tree

1 file changed

+1
-3
lines changed
  • custom_components/systemair

1 file changed

+1
-3
lines changed

custom_components/systemair/api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""API Client for Systemair VSR ventilation units using Modbus TCP."""
2-
32
import asyncio
43
from typing import Any
54

65
from pymodbus.client import AsyncModbusTcpClient
76
from pymodbus.exceptions import ModbusException
8-
from pymodbus.pdu import ModbusResponse
97

108
from .const import LOGGER
119
from .modbus import parameter_map
@@ -27,7 +25,7 @@ def __init__(self, host: str, port: int, slave_id: int, timeout: int = 5) -> Non
2725
self._lock = asyncio.Lock()
2826
self._is_connected = False
2927

30-
def _raise_if_response_error(self, result: ModbusResponse, context: str) -> None:
28+
def _raise_if_response_error(self, result: Any, context: str) -> None:
3129
"""Raise a connection error if the Modbus result is an error."""
3230
if result.isError():
3331
msg = f"{context}: {result}"

0 commit comments

Comments
 (0)