Streamline modbus test_init (#50990)

* Streamline test_init.

* Review comments.

* Remove hub name.
This commit is contained in:
jan iversen 2021-05-24 14:53:54 +02:00 committed by GitHub
parent 1546dbbf25
commit c74e65ac2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 120 additions and 236 deletions

View file

@ -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,