@@ -98,7 +98,7 @@ async def write_registers_32bit(self, address_1based: int, value: int) -> None:
9898 """Write a 32-bit value across two registers."""
9999
100100 @abstractmethod
101- async def get_all_data (self , enable_alarm_history : bool = False ) -> dict [str , Any ]:
101+ async def get_all_data (self , * , enable_alarm_history : bool = False ) -> dict [str , Any ]:
102102 """Get all data from device."""
103103
104104
@@ -272,7 +272,7 @@ async def write_registers_32bit(self, address_1based: int, value: int) -> None:
272272 values = [low_word , high_word ]
273273 await self ._queue_request ("write_multiple" , address = address_1based - 1 , values = values )
274274
275- async def get_all_data (self , enable_alarm_history : bool = False ) -> dict [str , Any ]:
275+ async def get_all_data (self , * , enable_alarm_history : bool = False ) -> dict [str , Any ]:
276276 """Queue read requests for all required data blocks and assemble the result."""
277277 read_blocks = list (READ_BLOCKS_BASE )
278278 if enable_alarm_history :
@@ -507,7 +507,7 @@ async def test_connection(self) -> bool:
507507 LOGGER .error ("Serial port error during connection test: %s" , e )
508508 return False
509509
510- async def get_all_data (self , enable_alarm_history : bool = False ) -> dict [str , Any ]:
510+ async def get_all_data (self , * , enable_alarm_history : bool = False ) -> dict [str , Any ]:
511511 """Queue read requests for all required data blocks and assemble the result."""
512512 read_blocks = list (READ_BLOCKS_BASE )
513513 if enable_alarm_history :
@@ -621,7 +621,7 @@ async def write_registers_32bit(self, address_1based: int, value: int) -> None:
621621 url = f"http://{ self ._address } /mwrite?{{{ query_params } }}"
622622 await self ._api_wrapper (method = "get" , url = url )
623623
624- async def get_all_data (self , enable_alarm_history : bool = False ) -> dict [str , Any ]:
624+ async def get_all_data (self , * , enable_alarm_history : bool = False ) -> dict [str , Any ]:
625625 """Get all data from device (compatibility with Modbus TCP client)."""
626626 async with self ._lock :
627627 read_blocks = list (READ_BLOCKS_BASE )
0 commit comments