async def async_toggle(self, **kwargs: Any) -> None:
    'Toggle the entity.'
    if self.is_on:
        (await self.async_turn_off(**kwargs))
    else:
        (await self.async_turn_on(**kwargs))
Toggle the entity.
async def async_toggle(self, **kwargs: Any) -> None:
    
    if self.is_on:
        (await self.async_turn_off(**kwargs))
    else:
        (await self.async_turn_on(**kwargs))