Collection of code styling tweaks (#87344)

This commit is contained in:
Franck Nijhof 2023-02-03 23:51:27 +01:00 committed by GitHub
parent 3ccd0ef013
commit fcb612cd6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 391 additions and 214 deletions

View file

@ -84,7 +84,8 @@ def async_setup_block_attribute_entities(
if getattr(block, sensor_id, None) in (-1, None):
continue
# Filter and remove entities that according to settings should not create an entity
# Filter and remove entities that according to settings
# should not create an entity
if description.removal_condition and description.removal_condition(
coordinator.device.settings, block
):
@ -192,7 +193,8 @@ def async_setup_rpc_attribute_entities(
] and not description.supported(coordinator.device.status[key]):
continue
# Filter and remove entities that according to settings/status should not create an entity
# Filter and remove entities that according to settings/status
# should not create an entity
if description.removal_condition and description.removal_condition(
coordinator.device.config, coordinator.device.status, key
):