Fix CMD_SCREEN_ON constant in accordance with #323 #325
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This implements the change mentioned in #323.
The original issue of not getting any information in HASS was caused by
update()
python-androidtv/androidtv/androidtv/androidtv_async.py
Line 84 in b1425b1
using the lazy parameter in
get_properties()
, which doesn't retrieve any information unless the screen is on:python-androidtv/androidtv/androidtv/androidtv_async.py
Line 182 in b1425b1
The change adds an additional way to check whether or not the screen is on, and should still function properly in older android versions.
More work is needed to determine the cause of periodic state:Off logs: #323 (comment)