diff --git a/homeassistant/components/ps4/__init__.py b/homeassistant/components/ps4/__init__.py index 9293d684a85..e6c22552fc2 100644 --- a/homeassistant/components/ps4/__init__.py +++ b/homeassistant/components/ps4/__init__.py @@ -84,7 +84,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: return await hass.config_entries.async_unload_platforms(entry, PLATFORMS) -async def async_migrate_entry(hass, entry): +async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Migrate old entry.""" config_entries = hass.config_entries data = entry.data diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index dd73589b573..dc332e9c20c 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -1054,7 +1054,7 @@ class ConfigEntries: *, unique_id: str | None | UndefinedType = UNDEFINED, title: str | UndefinedType = UNDEFINED, - data: dict | UndefinedType = UNDEFINED, + data: Mapping[str, Any] | UndefinedType = UNDEFINED, options: Mapping[str, Any] | UndefinedType = UNDEFINED, pref_disable_new_entities: bool | UndefinedType = UNDEFINED, pref_disable_polling: bool | UndefinedType = UNDEFINED, @@ -1081,7 +1081,7 @@ class ConfigEntries: setattr(entry, attr, value) changed = True - if data is not UNDEFINED and entry.data != data: # type: ignore + if data is not UNDEFINED and entry.data != data: changed = True entry.data = MappingProxyType(data)