Streamline modbus test_init (#50990)
* Streamline test_init. * Review comments. * Remove hub name.
This commit is contained in:
parent
1546dbbf25
commit
c74e65ac2d
5 changed files with 120 additions and 236 deletions
|
@ -158,8 +158,7 @@ class ModbusFan(BasePlatform, FanEntity, RestoreEntity):
|
|||
self._is_on = False
|
||||
elif value is not None:
|
||||
_LOGGER.error(
|
||||
"Unexpected response from hub %s, slave %s register %s, got 0x%2x",
|
||||
self._hub.name,
|
||||
"Unexpected response from modbus device slave %s register %s, got 0x%2x",
|
||||
self._slave,
|
||||
self._verify_address,
|
||||
value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue