1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Replace pylint protected-access with Ruff SLF001 (#115735)

This commit is contained in:
Sid
2024-05-06 20:33:26 +02:00
committed by GitHub
parent 460c05dc43
commit b456d97e65
90 changed files with 168 additions and 223 deletions

View File

@@ -153,7 +153,7 @@ class ConfigEntryState(Enum):
"""Create new ConfigEntryState."""
obj = object.__new__(cls)
obj._value_ = value
obj._recoverable = recoverable
obj._recoverable = recoverable # noqa: SLF001
return obj
@property
@@ -887,8 +887,7 @@ class ConfigEntry(Generic[_DataT]):
)
return False
if result:
# pylint: disable-next=protected-access
hass.config_entries._async_schedule_save()
hass.config_entries._async_schedule_save() # noqa: SLF001
except Exception: # pylint: disable=broad-except
_LOGGER.exception(
"Error migrating entry %s for %s", self.title, self.domain