Skip to content
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

rainbird.coordinator: Unexpected error fetching Schedule data: invalid literal for int() with base 10 #104344

Closed
lennon101 opened this issue Nov 22, 2023 · 3 comments · Fixed by #110814
Assignees

Comments

@lennon101
Copy link

The problem

Feedback

I've provided the ha log output with debugging enabled for the RainBird integration. This is a duplicate of the now closed issue #29766 I raised in the incorrect place - accidenctly 😆

Please let me know if you need anything else. Thanks!

URL

https://www.home-assistant.io/integrations/rainbird/

Version

Core: 2023.11.0
Frontend: 20231030.1

Additional information

home-assistant.log

What version of Home Assistant Core has the issue?

core-2023.11.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

RainBird

Link to integration documentation on our website

https://www.home-assistant.io/integrations/rainbird/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Main issue seems to be: 

`ERROR (MainThread) [homeassistant.components.rainbird.coordinator] Unexpected error fetching 192.168.1.55 Schedule data: invalid literal for int() with base 10: ''`

Additional information

No response

@home-assistant
Copy link

Hey there @konikvranik, @allenporter, mind taking a look at this issue as it has been labeled with an integration (rainbird) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of rainbird can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign rainbird Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


rainbird documentation
rainbird source
(message by IssueLinks)

@gkwok1
Copy link

gkwok1 commented Feb 5, 2024

I am getting the same error as well but it seems to only be an issue when raindelay days is 10 or greater.

@allenporter
Copy link
Contributor

Thanks, i was able to reproduce given that problem description.

Unexpected error fetching 10.10.38.50 Schedule data: invalid literal for int() with base 10: '0E'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/rainbird/coordinator.py", line 150, in _async_update_data
    return await self._controller.get_schedule()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyrainbird/async_client.py", line 428, in get_schedule
    result = await self._process_command(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyrainbird/async_client.py", line 489, in _process_command
    decoded = rainbird.decode(decrypted_data)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyrainbird/rainbird.py", line 187, in decode
    return {TYPE: cmd_template[TYPE], **decoder(data, cmd_template)}
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyrainbird/rainbird.py", line 45, in decode_schedule
    "rainDelay": int(rest[4:6]),
                 ^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '0E'

@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants