Skip to content

Commit 482e5f8

Browse files
committed
precommit
* custom_components/daikin_onecta/switch.py:
1 parent 647620d commit 482e5f8

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

custom_components/daikin_onecta/switch.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,7 @@ async def async_turn_on(self, **kwargs):
156156
self._switch_state = "on"
157157
self.async_write_ha_state()
158158
else:
159-
_LOGGER.debug(
160-
"Device '%s' switch '%s' request to turn on ignored because is already on",
161-
self._device.name,
162-
self._value
163-
)
159+
_LOGGER.debug("Device '%s' switch '%s' request to turn on ignored because is already on", self._device.name, self._value)
164160

165161
return result
166162

@@ -179,10 +175,6 @@ async def async_turn_off(self, **kwargs):
179175
self._switch_state = "off"
180176
self.async_write_ha_state()
181177
else:
182-
_LOGGER.debug(
183-
"Device '%s' switch '%s' request to turn off ignored because is already off",
184-
self._device.name,
185-
self._value
186-
)
178+
_LOGGER.debug("Device '%s' switch '%s' request to turn off ignored because is already off", self._device.name, self._value)
187179

188180
return result

0 commit comments

Comments
 (0)