Skip to content

Commit

Permalink
Cast fix (#4939)
Browse files Browse the repository at this point in the history
* Update frontend

* Fix exception on cast startup
  • Loading branch information
balloob authored Dec 16, 2016
1 parent a0b2105 commit b318a03
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/frontend/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FINGERPRINTS = {
"core.js": "ad1ebcd0614c98a390d982087a7ca75c",
"frontend.html": "920bb20410f9a1b8458600b15a1d40ae",
"frontend.html": "826ee6a4b39c939e31aa468b1ef618f9",
"mdi.html": "46a76f877ac9848899b8ed382427c16f",
"micromarkdown-js.html": "93b5ec4016f0bba585521cf4d18dec1a",
"panels/ha-panel-dev-event.html": "c2d5ec676be98d4474d19f94d0262c1e",
Expand Down
8 changes: 4 additions & 4 deletions homeassistant/components/frontend/www_static/frontend.html

Large diffs are not rendered by default.

Binary file modified homeassistant/components/frontend/www_static/frontend.html.gz
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
6 changes: 3 additions & 3 deletions homeassistant/components/media_player/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ def supported_media_commands(self):
@property
def media_position(self):
"""Position of current playing media in seconds."""
if self.media_status is None or not (
self.media_status.player_is_playing or
self.media_status.player_is_idle):
if self.media_status is None or self.media_status_received is None or \
not (self.media_status.player_is_playing or
self.media_status.player_is_idle):
return None

position = self.media_status.current_time
Expand Down

0 comments on commit b318a03

Please sign in to comment.