Deprecate OWFS/FUSE implementation in onewire integration (#42041)
* Add warning * Fix black * Combine logging messages * Combine logging messagespull/42088/head
parent
5db01ed7cf
commit
4459c843ea
|
@ -233,6 +233,13 @@ def get_entities(config):
|
|||
# This part of the implementation does not conform to policy regarding 3rd-party libraries, and will not longer be updated.
|
||||
# https://developers.home-assistant.io/docs/creating_platform_code_review/#5-communication-with-devicesservices
|
||||
_LOGGER.debug("Initializing using OWFS %s", base_dir)
|
||||
_LOGGER.warning(
|
||||
"The OWFS implementation of 1-Wire sensors is deprecated, "
|
||||
"and should be migrated to OWServer (on localhost:4304). "
|
||||
"If migration to OWServer is not feasible on your installation, "
|
||||
"please raise an issue at https://github.com/home-assistant/core/issues/new"
|
||||
"?title=Unable%20to%20migrate%20onewire%20from%20OWFS%20to%20OWServer",
|
||||
)
|
||||
for family_file_path in glob(os.path.join(base_dir, "*", "family")):
|
||||
with open(family_file_path) as family_file:
|
||||
family = family_file.read()
|
||||
|
|
Loading…
Reference in New Issue