From b12c53e94e34931651a13bf2ccb1a609dac782e6 Mon Sep 17 00:00:00 2001 From: Ido Flatow Date: Thu, 11 Jan 2024 11:39:50 +0200 Subject: [PATCH] Fix switcher kis logging incorrect property for device's name (#107775) * use of incorrect property for device's name * Update switch.py according to Ruff formatter --- homeassistant/components/switcher_kis/switch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/switcher_kis/switch.py b/homeassistant/components/switcher_kis/switch.py index f37e16aa513..88867393834 100644 --- a/homeassistant/components/switcher_kis/switch.py +++ b/homeassistant/components/switcher_kis/switch.py @@ -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