mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix unnecessary-return-none in tradfri (#122950)
This commit is contained in:
parent
177690bcb3
commit
7c179c33b5
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user