Skip to content

Commit f8c7e63

Browse files
author
Ted Roberts
committed
v0.2.6 - Fix brightness read to use screen/readDetail endpoint
1 parent 31475a6 commit f8c7e63

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

custom_components/novastar_h/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async def async_get_brightness(
325325
) -> int:
326326
"""Get current screen brightness (0-100)."""
327327
data = await self._async_request(
328-
"screen/readBrightness",
328+
"screen/readDetail",
329329
{"screenId": screen_id, "deviceId": device_id},
330330
)
331331
if data and isinstance(data, dict):
@@ -372,7 +372,7 @@ async def async_set_freeze(
372372
device_id: Device ID
373373
"""
374374
data = await self._async_request(
375-
"screen/freeze",
375+
"screen/writeFreeze",
376376
{
377377
"type": 1 if freeze else 0, # 1: Freeze, 0: Unfreeze
378378
"screenId": screen_id,

custom_components/novastar_h/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
}
2222
],
2323
"zeroconf": ["_novastar._tcp.local."],
24-
"version": "0.2.5"
24+
"version": "0.2.6"
2525
}

0 commit comments

Comments
 (0)