Fix switcher kis logging incorrect property for device's name ()

* use of incorrect property for device's name

* Update switch.py according to Ruff formatter
This commit is contained in:
Ido Flatow 2024-01-11 11:39:50 +02:00 committed by GitHub
parent 1c669c6e84
commit b12c53e94e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,9 @@ class SwitcherBaseSwitchEntity(
async def _async_call_api(self, api: str, *args: Any) -> None:
"""Call Switcher API."""
_LOGGER.debug("Calling api for %s, api: '%s', args: %s", self.name, api, args)
_LOGGER.debug(
"Calling api for %s, api: '%s', args: %s", self.coordinator.name, api, args
)
response: SwitcherBaseResponse = None
error = None