Remove Rituals DiffuserSwitch extra_state_attributes ()

This commit is contained in:
Milan Meulemans 2021-07-28 11:52:55 +02:00 committed by GitHub
parent 553521a76b
commit 6299f58bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,14 +43,6 @@ class DiffuserSwitch(SwitchEntity, DiffuserEntity):
super().__init__(diffuser, coordinator, "")
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:
"""Turn the device on."""
await self._diffuser.turn_on()