mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix auto discovery if the monitor condition (#23880)
This commit is contained in:
parent
cf89f45697
commit
7a4238095d
@ -145,7 +145,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||||||
# Only create sensors for monitored properties
|
# Only create sensors for monitored properties
|
||||||
for condition in monitored_conditions:
|
for condition in monitored_conditions:
|
||||||
dev.append(NetatmoSensor(
|
dev.append(NetatmoSensor(
|
||||||
data, module_name, condition))
|
data, module_name, condition.lower()))
|
||||||
|
|
||||||
for module_name, _ in not_handled.items():
|
for module_name, _ in not_handled.items():
|
||||||
_LOGGER.error('Module name: "%s" not found', module_name)
|
_LOGGER.error('Module name: "%s" not found', module_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user