mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Remove Rituals DiffuserSwitch extra_state_attributes (#53611)
This commit is contained in:
parent
553521a76b
commit
6299f58bd7
@ -43,14 +43,6 @@ class DiffuserSwitch(SwitchEntity, DiffuserEntity):
|
|||||||
super().__init__(diffuser, coordinator, "")
|
super().__init__(diffuser, coordinator, "")
|
||||||
self._attr_is_on = self._diffuser.is_on
|
self._attr_is_on = self._diffuser.is_on
|
||||||
|
|
||||||
@property
|
|
||||||
def extra_state_attributes(self) -> dict[str, Any]:
|
|
||||||
"""Return the device state attributes."""
|
|
||||||
return {
|
|
||||||
"fan_speed": self._diffuser.perfume_amount,
|
|
||||||
"room_size": self._diffuser.room_size,
|
|
||||||
}
|
|
||||||
|
|
||||||
async def async_turn_on(self, **kwargs: Any) -> None:
|
async def async_turn_on(self, **kwargs: Any) -> None:
|
||||||
"""Turn the device on."""
|
"""Turn the device on."""
|
||||||
await self._diffuser.turn_on()
|
await self._diffuser.turn_on()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user