mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-17 22:36:30 +00:00
Fix indentation (#2239)
This commit is contained in:
parent
53ac59f86c
commit
1d2df8b0e7
@ -100,7 +100,7 @@ that still allows for discovery, as long as there aren't any instances of the in
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
if device_unique_id:
|
if device_unique_id:
|
||||||
await self.async_set_unique_id(device_unique_id)
|
await self.async_set_unique_id(device_unique_id)
|
||||||
await self._async_handle_discovery_without_unique_id()
|
await self._async_handle_discovery_without_unique_id()
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -232,8 +232,8 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry):
|
|||||||
_LOGGER.debug("Migrating configuration from version %s.%s", config_entry.version, config_entry.minor_version)
|
_LOGGER.debug("Migrating configuration from version %s.%s", config_entry.version, config_entry.minor_version)
|
||||||
|
|
||||||
if config_entry.version > 1:
|
if config_entry.version > 1:
|
||||||
# This means the user has downgraded from a future version
|
# This means the user has downgraded from a future version
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if config_entry.version == 1:
|
if config_entry.version == 1:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user