Removes unnecessary else/elif blocks (#26884)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-09-24 13:53:03 -07:00
1 parent 18873d202d
commit b1118cb8ff
13 files changed
+53 -42

No files matched your search

+1 -2
View File
@@ -27,8 +27,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
if not hass.config.is_allowed_path(path):
_LOGGER.error("Filepath %s is not valid or allowed", path)
continue
else:
sensors.append(Filesize(path))
sensors.append(Filesize(path))
if sensors:
add_entities(sensors, True)