Set min, max, and step for ViCare number entities (#104593)

Co-authored-by: Robert Resch <robert@resch.dev>
This commit is contained in:
Christopher Fenner 2023-11-28 10:53:59 +01:00 committed by GitHub
parent d1463a81d3
commit 1ef97ab6f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 25 deletions

View file

@ -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)