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
@@ -103,12 +103,8 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
||||
attribute_templates,
|
||||
)
|
||||
)
|
||||
if not sensors:
|
||||
_LOGGER.error("No sensors added")
|
||||
return False
|
||||
|
||||
async_add_entities(sensors)
|
||||
return True
|
||||
|
||||
|
||||
class BinarySensorTemplate(BinarySensorDevice):
|
||||
|
||||
Reference in new issue
Block a user