Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast fix #4939

Merged
merged 2 commits into from
Dec 16, 2016
Merged

Cast fix #4939

merged 2 commits into from
Dec 16, 2016

Conversation

balloob
Copy link
Member

@balloob balloob commented Dec 16, 2016

Description:
On startup, it can be for the cast devices that the media status has not been received yet.

Related issue (if applicable):

16-12-15 19:54:53 homeassistant.core: Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "uvloop/future.pyx", line 372, in uvloop.loop.BaseTask._fast_step (uvloop/loop.c:105885)
  File "/usr/src/app/homeassistant/helpers/entity_component.py", line 335, in _async_process_entity
    new_entity, self, update_before_add=update_before_add
  File "/usr/src/app/homeassistant/helpers/entity_component.py", line 204, in async_add_entity
    yield from entity.async_update_ha_state()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 224, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/usr/src/app/homeassistant/components/media_player/__init__.py", line 699, in state_attributes
    in ATTR_TO_PROPERTY if getattr(self, attr) is not None
  File "/usr/src/app/homeassistant/components/media_player/__init__.py", line 699, in <dictcomp>
    in ATTR_TO_PROPERTY if getattr(self, attr) is not None
  File "/usr/src/app/homeassistant/components/media_player/cast.py", line 248, in media_position
    self.media_status_received).total_seconds()
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'

@balloob balloob added this to the 0.35 milestone Dec 16, 2016
@balloob balloob merged commit b318a03 into dev Dec 16, 2016
@balloob balloob deleted the cast-fix branch December 16, 2016 08:10
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant