Skip to content

Navigation Menu

Sign in
Sign up

Only use GOOGLE_TV constants for Android <14 - #368

Open
ius wants to merge 1 commit into
JeffLIrion:master from
ius:chromecast-fix
Open

Only use GOOGLE_TV constants for Android <14 #368
ius wants to merge 1 commit into
JeffLIrion:master from
ius:chromecast-fix

Conversation

@ius

@ius ius commented Nov 30, 2025

Copy link
Copy Markdown

Chromecast (HD) with Android 14 currently fails to return current_app correctly. See home-assistant/core#153778.

The 'Chromecast only' special cased command constants prevent the code path from reaching the (working) Android 13/14 constants. Fixed it by relying on the generic constants for Android 14.

Tested using:

#!/usr/bin/env python3
from androidtv.androidtv.androidtv_sync import AndroidTVSync
atv = AndroidTVSync("192.168.0.29", 5555, "/home/user/.android/adbkey")
atv.adb_connect()
atv.get_device_properties()
print("current_app:", atv.current_app())
print(atv.update())

Chromecast HD with Android 14 requires the generic Android 13/14 constants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /