From 5647cc24e6001d978470fe09b9e025dd10b8d387 Mon Sep 17 00:00:00 2001 From: Vadym Melnychuk Date: Sun, 3 Dec 2023 20:57:27 +0200 Subject: [PATCH] fix black checks --- custom_components/hon/select.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/hon/select.py b/custom_components/hon/select.py index 97db69d..408ba60 100644 --- a/custom_components/hon/select.py +++ b/custom_components/hon/select.py @@ -314,12 +314,10 @@ class HonSelectEntity(HonEntity, SelectEntity): setting.value = self._option_to_number(option, setting.values) key_parts = self.entity_description.key.split(".") command = key_parts[0] - - if (self.entity_description.send_key_only): + if self.entity_description.send_key_only: await self._device.commands[command].send_specific([key_parts[1]]) else: await self._device.commands[command].send() - if command != "settings": self._device.sync_command(command, "settings") await self.coordinator.async_refresh()