mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix unreachable code!
This commit is contained in:
parent
7c1241c1f8
commit
9c33af60f2
@ -64,7 +64,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
unit_of_measurement,
|
||||
state_template)
|
||||
)
|
||||
if sensors is None:
|
||||
if not sensors:
|
||||
_LOGGER.error("No sensors added")
|
||||
return False
|
||||
add_devices(sensors)
|
||||
|
Loading…
x
Reference in New Issue
Block a user