Template platform tweaks (#32037)

* Remove unnecessary boolean return from platform setup

* Fix template cover validation
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-02-20 12:14:31 -08:00
1 parent 2e35190aff
commit ce710f1e0b
5 files changed
+39 -64

No files matched your search

@@ -93,12 +93,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
)
)
if not switches:
_LOGGER.error("No switches added")
return False
async_add_entities(switches)
return True
class SwitchTemplate(SwitchDevice):