Skip to content

Commit 1222927

Browse files
authored
Fix status parsing of isActiveInput and isStandby (#1051)
These were broken by commit 8b16e86, which introduced the new status_data dict, replacing a shadowing "data" dict, but missing these two references. (8b16e86)
1 parent ad33f80 commit 1222927

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pychromecast/controllers/receiver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ def _parse_status(data: dict, cast_type: str) -> CastStatus:
286286
is_audio = cast_type in (CAST_TYPE_AUDIO, CAST_TYPE_GROUP)
287287

288288
status = CastStatus(
289-
data.get("isActiveInput", None if is_audio else False),
290-
data.get("isStandBy", None if is_audio else True),
289+
status_data.get("isActiveInput", None if is_audio else False),
290+
status_data.get("isStandBy", None if is_audio else True),
291291
volume_data.get("level", 1.0),
292292
volume_data.get("muted", False),
293293
app_data.get(APP_ID),

0 commit comments

Comments
 (0)