From 53d86d431706ea4b32f1251257f01a628aa78de5 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 6 Jan 2022 12:09:43 +0100 Subject: [PATCH] Deprecate 1-Wire SysBus (ADR-0019) (#63513) * Deprecate 1-Wire (ADR-0019) * Deprecate only SysBus * Remove from init Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Clarify OWServer is supported Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> --- homeassistant/components/onewire/onewirehub.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/onewire/onewirehub.py b/homeassistant/components/onewire/onewirehub.py index ed032eb4fde..63ed3e8cef9 100644 --- a/homeassistant/components/onewire/onewirehub.py +++ b/homeassistant/components/onewire/onewirehub.py @@ -93,6 +93,14 @@ class OneWireHub: if self.type == CONF_TYPE_SYSBUS: mount_dir = config_entry.data[CONF_MOUNT_DIR] _LOGGER.debug("Initializing using SysBus %s", mount_dir) + _LOGGER.warning( + "Using the 1-Wire integration via SysBus is deprecated and will be removed " + "in Home Assistant Core 2022.6; this integration is being adjusted to comply " + "with Architectural Decision Record 0019, more information can be found here: " + "https://github.com/home-assistant/architecture/blob/master/adr/0019-GPIO.md " + "Access via OWServer is still supported" + ) + await self.check_mount_dir(mount_dir) elif self.type == CONF_TYPE_OWSERVER: host = config_entry.data[CONF_HOST]