mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Fix using the async api from sync context (#36408)
This commit is contained in:
parent
0950ab0dd8
commit
b8f8b6fa50
@ -43,7 +43,7 @@ DUNEHD_PLAYER_SUPPORT = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Set up the Dune HD media player platform."""
|
"""Set up the Dune HD media player platform."""
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user