Template platform tweaks (#32037)
* Remove unnecessary boolean return from platform setup * Fix template cover validation
This commit is contained in:
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):
|
||||
|
||||
Reference in new issue
Block a user