Remove all empty *_setup_platform() from integrations (#31025)
* Remove all empty *_setup_platform() from integrations * Fix tests for smartthings * Fix tests for heos
This commit is contained in:
1 parent
41014d73be
commit
fb35d382e1
89 files changed
-451
No files matched your search
@@ -23,11 +23,6 @@ ATTR_PROTECTION_WINDOW_STARTING_TIME = "start_time"
|
||||
ATTR_PROTECTION_WINDOW_STARTING_UV = "start_uv"
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||
"""Set up an OpenUV sensor based on existing config."""
|
||||
pass
|
||||
|
||||
|
||||
async def async_setup_entry(hass, entry, async_add_entities):
|
||||
"""Set up an OpenUV sensor based on a config entry."""
|
||||
openuv = hass.data[DOMAIN][DATA_OPENUV_CLIENT][entry.entry_id]
|
||||
|
||||
Reference in new issue
Block a user