ualex73 / slide

Slide Component for Home Assistant
Apache License 2.0
25 stars 8 forks source link

Slide overview call doesn't update correctly. so slide displays a wrong state. added own line of code to use the "get_slide_position" call #5

Closed DarrenSanders123 closed 4 months ago

DarrenSanders123 commented 2 years ago

When using the call "slide_overview" the postion are out of date when changes it takes a few min for that to update. added this code to fix the issue and use the slide info api call to get the correct position

if "pos" in slide["device_info"]:
                slidenew["pos"] = await hass.data[DOMAIN][API_CLOUD].slide_get_position(slide["id"])
                _LOGGER.debug(slidenew["pos"])
                slidenew["online"] = True
DarrenSanders123 commented 2 years ago

kan ook in Nederlands reageren :)

ualex73 commented 4 months ago

I think we can close this one, the Cloud API will be soon gone. If you experience the same with the local API, please raise it again!