Fix unnecessary-return-none in tradfri (#122950)
This commit is contained in:
parent
177690bcb3
commit
7c179c33b5
1 changed files with 2 additions and 2 deletions
|
@ -73,11 +73,11 @@ class TradfriSwitch(TradfriBaseEntity, SwitchEntity):
|
|||
async def async_turn_off(self, **kwargs: Any) -> None:
|
||||
"""Instruct the switch to turn off."""
|
||||
if not self._device_control:
|
||||
return None
|
||||
return
|
||||
await self._api(self._device_control.set_state(False))
|
||||
|
||||
async def async_turn_on(self, **kwargs: Any) -> None:
|
||||
"""Instruct the switch to turn on."""
|
||||
if not self._device_control:
|
||||
return None
|
||||
return
|
||||
await self._api(self._device_control.set_state(True))
|
||||
|
|
Loading…
Add table
Reference in a new issue