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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user