New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump dependency for HomematicIP Cloud #43018
Conversation
Can we run a migration to clean up the entities that can be safely deleted? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Hi @balloob , |
Ok. This means that we can remove the breaking change. |
for hapid in hap.home.accessPointUpdateStates.keys(): | ||
if er_entry.unique_id == f"HomematicipBatterySensor_{hapid}": | ||
entity_registry.async_remove(er_entry.entity_id) | ||
except Exception as err: # pylint: disable=broad-except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not catch Exception
. What can raise here ? Wrap only the code that can raise and with the errors that you expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was overly careful here. The check for the minimum version should be OK, so i removed try/catch.
Hi, please add the to current beta. |
Tagging this for 0.118 as requested. |
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Proposed change
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: