Skip to content

Commit

Permalink
Chromecast no longer exposes host attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Oct 25, 2014
1 parent 450ce69 commit 5596ac7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions homeassistant/components/chromecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
ENTITY_ID_FORMAT = DOMAIN + '.{}'
STATE_NO_APP = 'no_app'

ATTR_HOST = 'host'
ATTR_STATE = 'state'
ATTR_OPTIONS = 'options'
ATTR_MEDIA_STATE = 'media_state'
Expand Down Expand Up @@ -148,8 +147,7 @@ def update_chromecast_state(entity_id, chromecast):

status = chromecast.app

state_attr = {ATTR_HOST: chromecast.host,
components.ATTR_FRIENDLY_NAME:
state_attr = {components.ATTR_FRIENDLY_NAME:
chromecast.device.friendly_name}

if status and status.app_id != pychromecast.APP_ID['HOME']:
Expand Down

0 comments on commit 5596ac7

Please sign in to comment.