Fix len-test (PLC1802) (#140600)

This commit is contained in:
Marc Mueller 2025-03-14 17:03:42 +01:00 committed by GitHub
parent 588366a514
commit 2951eb5cc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -40,7 +40,7 @@ async def async_setup_entry(
if (device_id, field_id) not in sensors
and isinstance(ttn_value, TTNSensorValue)
}
if len(new_sensors):
if new_sensors:
async_add_entities(new_sensors.values())
sensors.update(new_sensors.keys())

View File

@ -856,8 +856,6 @@ ignore = [
# Disabled because ruff does not understand type of __all__ generated by a function
"PLE0605",
"PLC1802", # disabled temporarily on ruff 0.10.0 update
]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]