Skip to content

Commit 651dd45

Browse files
JnyJnyclaude
andcommitted
fix: update web API endpoints to use light.hardware instead of light.info
Two endpoints were failing because they referenced light.info which doesn't exist - they should use light.hardware instead. Fixed endpoints: - GET /light/{light_id}/status - GET /lights/status 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 8c91e5b commit 651dd45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/busylight/api/busylight_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def light_status(
244244
return {
245245
"light_id": light_id,
246246
"name": light.name,
247-
"info": light.info,
247+
"info": light.hardware,
248248
"is_on": light.is_on,
249249
"color": colortuple_to_name(light.color),
250250
"rgb": light.color,
@@ -267,7 +267,7 @@ async def lights_status() -> List[Dict[str, Any]]:
267267
{
268268
"light_id": light_id,
269269
"name": light.name,
270-
"info": light.info,
270+
"info": light.hardware,
271271
"is_on": light.is_on,
272272
"color": colortuple_to_name(light.color),
273273
"rgb": light.color,

0 commit comments

Comments
 (0)