mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Demo: Explicitly return None when no extra state attribute set (#52390)
This commit is contained in:
parent
c1c078c3d5
commit
451b976458
@ -53,6 +53,7 @@ class DemoRemote(RemoteEntity):
|
|||||||
"""Return device state attributes."""
|
"""Return device state attributes."""
|
||||||
if self._last_command_sent is not None:
|
if self._last_command_sent is not None:
|
||||||
return {"last_command_sent": self._last_command_sent}
|
return {"last_command_sent": self._last_command_sent}
|
||||||
|
return None
|
||||||
|
|
||||||
def turn_on(self, **kwargs: Any) -> None:
|
def turn_on(self, **kwargs: Any) -> None:
|
||||||
"""Turn the remote on."""
|
"""Turn the remote on."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user