Refactor chromecast into media_player platform

This commit is contained in:
Paulus Schoutsen 2015-03-03 23:50:54 -08:00
parent a90dcabe01
commit 84844c242b
9 changed files with 513 additions and 375 deletions

View file

@ -17,7 +17,8 @@ DOMAIN = "demo"
DEPENDENCIES = []
COMPONENTS_WITH_DEMO_PLATFORM = ['switch', 'light', 'thermostat', 'sensor']
COMPONENTS_WITH_DEMO_PLATFORM = [
'switch', 'light', 'thermostat', 'sensor', 'media_player']
def setup(hass, config):
@ -71,12 +72,6 @@ def setup(hass, config):
]
})
# Setup chromecast
hass.states.set("chromecast.Living_Rm", "Plex",
{'friendly_name': 'Living Room',
ATTR_ENTITY_PICTURE:
'http://graph.facebook.com/KillBillMovie/picture'})
# Setup configurator
configurator_ids = []