mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Deprecate homekit_controller .homekit folder (#32158)
* homekit_controller: Deprecate .homekit folder * Tweaks from review * Delay it a release
This commit is contained in:
parent
c9d78aa78c
commit
438c4acf07
@ -1,5 +1,6 @@
|
||||
"""Support for Homekit device discovery."""
|
||||
import logging
|
||||
import os
|
||||
|
||||
import aiohomekit
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
@ -227,6 +228,16 @@ async def async_setup(hass, config):
|
||||
hass.data[CONTROLLER] = aiohomekit.Controller()
|
||||
hass.data[KNOWN_DEVICES] = {}
|
||||
|
||||
dothomekit_dir = hass.config.path(".homekit")
|
||||
if os.path.exists(dothomekit_dir):
|
||||
_LOGGER.warning(
|
||||
(
|
||||
"Legacy homekit_controller state found in %s. Support for reading "
|
||||
"the folder is deprecated and will be removed in 0.109.0."
|
||||
),
|
||||
dothomekit_dir,
|
||||
)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user