Is it Better to Delete Added Contacts from the Discovered Contacts File?

Open
#107 3 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 11 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

This is an open design question, not a defined change: the issue asks whether added contacts should be removed from the Discovered Contacts File or marked with "added_to_node": true. The payload names no source files or tests. Start by reading the linked Contact_Management.md workaround and the three listed problems to see how the file is currently written and read. Done means a maintainer agrees on one approach before any code is written.

Written by the indexing model from the issue text.

Description

enhancement

3 reasons to delete them over adding "added_to_node": true in this Discovered Contacts File:

  1. If you add a node with added contacts in the integration these added contact will not be added to this Discovered Contacts File
  2. If you remove an added contact from your node, in HA this contact unavailable etc but in Discovered Contact File this contact become orphaned and gets harder to remove (not impossible solutions are delete Discovered Contacts File or manual action)
  3. It reduces the size of the Discovered Contacts File.

As (temporarily?) workaround I have created a Manage Contacts BULK action/card which can be found:

Image

See https://github.com/WJ4IoT/Meshcore-Home-Assistant-Solutions/blob/main/Contact_Management.md

Dominant language
Python
Stars
269
Forks
58
Avg merge
10d 17h
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/meshcore-ha

All issues in meshcore-dev/meshcore-ha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.