Use device registry

This commit is contained in:
2020-11-07 00:41:19 +01:00
parent a384b48331
commit 6d72011bed
9 changed files with 169 additions and 9 deletions

View File

@@ -23,6 +23,10 @@ async def async_setup_platform(hass, config, async_add_devices, discovery_info=N
return setup_platform(hass, config, async_add_devices, PLATFORM, BrowserModPlayer)
async def async_setup_entry(hass, config_entry, async_add_entities):
await async_setup_platform(hass, {}, async_add_entities)
class BrowserModPlayer(MediaPlayerEntity, BrowserModEntity):
domain = PLATFORM