Refactor chromecast into media_player platform
This commit is contained in:
parent
a90dcabe01
commit
84844c242b
9 changed files with 513 additions and 375 deletions
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue