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