mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 09:23:17 -04:00
Log the table name in the Sisyphus sleep and wakeup messages (#182929)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
6eecf17ed6
commit
5a2fb3b981
@@ -90,14 +90,14 @@ class SisyphusLight(LightEntity):
|
||||
async def async_turn_off(self, **kwargs: Any) -> None:
|
||||
"""Put the table to sleep."""
|
||||
await self._table.sleep()
|
||||
_LOGGER.debug("Sisyphus table %s: sleep")
|
||||
_LOGGER.debug("Sisyphus table %s: sleep", self._name)
|
||||
|
||||
@override
|
||||
async def async_turn_on(self, **kwargs: Any) -> None:
|
||||
"""Wake up the table if necessary, optionally changes brightness."""
|
||||
if not self.is_on:
|
||||
await self._table.wakeup()
|
||||
_LOGGER.debug("Sisyphus table %s: wakeup")
|
||||
_LOGGER.debug("Sisyphus table %s: wakeup", self._name)
|
||||
|
||||
if "brightness" in kwargs:
|
||||
await self._table.set_brightness(kwargs["brightness"] / 255.0)
|
||||
|
||||
Reference in New Issue
Block a user