Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
    * custom_components/daikin_onecta/switch.py:
  • Loading branch information
jwillemsen committed Mar 19, 2024
1 parent 647620d commit 482e5f8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions custom_components/daikin_onecta/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,7 @@ async def async_turn_on(self, **kwargs):
self._switch_state = "on"
self.async_write_ha_state()
else:
_LOGGER.debug(
"Device '%s' switch '%s' request to turn on ignored because is already on",
self._device.name,
self._value
)
_LOGGER.debug("Device '%s' switch '%s' request to turn on ignored because is already on", self._device.name, self._value)

return result

Expand All @@ -179,10 +175,6 @@ async def async_turn_off(self, **kwargs):
self._switch_state = "off"
self.async_write_ha_state()
else:
_LOGGER.debug(
"Device '%s' switch '%s' request to turn off ignored because is already off",
self._device.name,
self._value
)
_LOGGER.debug("Device '%s' switch '%s' request to turn off ignored because is already off", self._device.name, self._value)

return result

0 comments on commit 482e5f8

Please sign in to comment.