Init temperature number for central configuration + testus ok

This commit is contained in:
Jean-Marc Collin
2024-03-03 15:03:20 +00:00
parent 4478d65ad4
commit ea6f2d5579
14 changed files with 1201 additions and 153 deletions

View File

@@ -528,6 +528,7 @@ def search_entity(hass: HomeAssistant, entity_id, domain) -> Entity:
"""Search and return the entity in the domain"""
component = hass.data[domain]
for entity in component.entities:
_LOGGER.debug("Found %s entity: %s", domain, entity.entity_id)
if entity.entity_id == entity_id:
return entity
return None