-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for Neato D3 state obtaining #8817
Conversation
Hello @karlkar, When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es). The commits that are missing a linked GitHub account are the following:
Unfortunately, we are unable to accept this pull request until this situation is corrected. Here are your options:
We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community. Thanks, I look forward to checking this PR again soon! ❤️ |
How to remove cla-error tag? |
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.
Can you try my suggestion, please?
@@ -105,7 +105,10 @@ def update(self): | |||
self._status_state = ERRORS.get(self._state['error']) | |||
if self.type == SENSOR_TYPE_BATTERY: | |||
self._battery_state = self._state['details']['charge'] | |||
if self._mapdata is None: | |||
if (self._mapdata is None |
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.
self._mapdata
will always be a dictionary:
https://github.com/jabesq/pybotvac/blob/master/pybotvac/account.py#L89
I think this should work:
if not self._mapdata.get(self.robot.serial, {}).get('maps', []):
return
Can you test?
Looks like the commits check out ok with the CLA. Might be our bot is not working perfectly. It used to remove the |
@MartinHjelmare I've checked your suggestion and it works fine. I've fixed my commit. |
Thanks! |
Description:
Fix error that occurred when getting state of Neato D3 Connected
Related issue (if applicable): fixes #8831
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for
configuration.yaml
(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
tox
run successfully. Your PR cannot be merged unless tests passREQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices:
tox
run successfully. Your PR cannot be merged unless tests pass