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:
Yanze (David) Wu
2026-09-22 19:14:07 +02:00
committed by GitHub
co-authored by Claude Opus 5
parent 6eecf17ed6
commit 5a2fb3b981
+2 -2
View File
@@ -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)