mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix len-test (PLC1802) (#140600)
This commit is contained in:
parent
588366a514
commit
2951eb5cc8
@ -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())
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user