mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
Fix unnecessary-return-none in tradfri (#122950)
This commit is contained in:
@@ -73,11 +73,11 @@ class TradfriSwitch(TradfriBaseEntity, SwitchEntity):
|
|||||||
async def async_turn_off(self, **kwargs: Any) -> None:
|
async def async_turn_off(self, **kwargs: Any) -> None:
|
||||||
"""Instruct the switch to turn off."""
|
"""Instruct the switch to turn off."""
|
||||||
if not self._device_control:
|
if not self._device_control:
|
||||||
return None
|
return
|
||||||
await self._api(self._device_control.set_state(False))
|
await self._api(self._device_control.set_state(False))
|
||||||
|
|
||||||
async def async_turn_on(self, **kwargs: Any) -> None:
|
async def async_turn_on(self, **kwargs: Any) -> None:
|
||||||
"""Instruct the switch to turn on."""
|
"""Instruct the switch to turn on."""
|
||||||
if not self._device_control:
|
if not self._device_control:
|
||||||
return None
|
return
|
||||||
await self._api(self._device_control.set_state(True))
|
await self._api(self._device_control.set_state(True))
|
||||||
|
Reference in New Issue
Block a user