Skip to content

Commit

Permalink
fix black checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadym Melnychuk committed Dec 3, 2023
1 parent 6ba50f8 commit 5647cc2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/hon/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,10 @@ async def async_select_option(self, option: str) -> None:
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()
Expand Down

0 comments on commit 5647cc2

Please sign in to comment.