Set min, max, and step for ViCare number entities (#104593)
Co-authored-by: Robert Resch <robert@resch.dev>
This commit is contained in:
parent
d1463a81d3
commit
1ef97ab6f8
4 changed files with 53 additions and 25 deletions
|
@ -624,7 +624,7 @@ async def _entities_from_descriptions(
|
|||
hass.data[DOMAIN][config_entry.entry_id][VICARE_DEVICE_CONFIG],
|
||||
description,
|
||||
)
|
||||
if entity is not None:
|
||||
if entity:
|
||||
entities.append(entity)
|
||||
|
||||
|
||||
|
@ -647,7 +647,7 @@ async def async_setup_entry(
|
|||
device_config,
|
||||
description,
|
||||
)
|
||||
if entity is not None:
|
||||
if entity:
|
||||
entities.append(entity)
|
||||
|
||||
circuits = await hass.async_add_executor_job(get_circuits, api)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue