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 refuses to start in HA 2023.10.0 #101443

Closed
konikvranik opened this issue Oct 5, 2023 · 46 comments
Closed

Rainbird refuses to start in HA 2023.10.0 #101443

konikvranik opened this issue Oct 5, 2023 · 46 comments

Comments

@konikvranik
Copy link
Contributor

The problem

Oct 05 08:10:19 hass.home hass[4180]: 2023-10-05 08:10:19.512 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component homeassistant.components.rainbird
Oct 05 08:10:19 hass.home hass[4180]: Traceback (most recent call last):
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 818, in get_component
Oct 05 08:10:19 hass.home hass[4180]:     ComponentProtocol, importlib.import_module(self.pkg_path)
Oct 05 08:10:19 hass.home hass[4180]:                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 08:10:19 hass.home hass[4180]:   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
Oct 05 08:10:19 hass.home hass[4180]:     return _bootstrap._gcd_import(name[level:], package, level)
Oct 05 08:10:19 hass.home hass[4180]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/rainbird/__init__.py", line 4, in <module>
Oct 05 08:10:19 hass.home hass[4180]:     from pyrainbird.async_client import AsyncRainbirdClient, AsyncRainbirdController
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/pyrainbird/async_client.py", line 26, in <module>
Oct 05 08:10:19 hass.home hass[4180]:     from .data import (
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/pyrainbird/data.py", line 196, in <module>
Oct 05 08:10:19 hass.home hass[4180]:     class WifiParams(BaseModel):
Oct 05 08:10:19 hass.home hass[4180]:   File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
Oct 05 08:10:19 hass.home hass[4180]: TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
Oct 05 08:10:19 hass.home hass[4180]: 2023-10-05 08:10:19.609 ERROR (MainThread) [homeassistant.setup] Setup failed for rainbird: Unable to import component: Exception importing homeassistant.components.rainbird
Oct 05 08:10:19 hass.home hass[4180]: Traceback (most recent call last):
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 818, in get_component
Oct 05 08:10:19 hass.home hass[4180]:     ComponentProtocol, importlib.import_module(self.pkg_path)
Oct 05 08:10:19 hass.home hass[4180]:                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 08:10:19 hass.home hass[4180]:   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
Oct 05 08:10:19 hass.home hass[4180]:     return _bootstrap._gcd_import(name[level:], package, level)
Oct 05 08:10:19 hass.home hass[4180]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
Oct 05 08:10:19 hass.home hass[4180]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/rainbird/__init__.py", line 4, in <module>
Oct 05 08:10:19 hass.home hass[4180]:     from pyrainbird.async_client import AsyncRainbirdClient, AsyncRainbirdController
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/pyrainbird/async_client.py", line 26, in <module>
Oct 05 08:10:19 hass.home hass[4180]:     from .data import (
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/pyrainbird/data.py", line 196, in <module>
Oct 05 08:10:19 hass.home hass[4180]:     class WifiParams(BaseModel):
Oct 05 08:10:19 hass.home hass[4180]:   File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
Oct 05 08:10:19 hass.home hass[4180]: TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
Oct 05 08:10:19 hass.home hass[4180]: The above exception was the direct cause of the following exception:
Oct 05 08:10:19 hass.home hass[4180]: Traceback (most recent call last):
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 215, in _async_setup_component
Oct 05 08:10:19 hass.home hass[4180]:     component = integration.get_component()
Oct 05 08:10:19 hass.home hass[4180]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 08:10:19 hass.home hass[4180]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 826, in get_component
Oct 05 08:10:19 hass.home hass[4180]:     raise ImportError(f"Exception importing {self.pkg_path}") from err
Oct 05 08:10:19 hass.home hass[4180]: ImportError: Exception importing homeassistant.components.rainbird

What version of Home Assistant Core has the issue?

2023.10.0

What was the last working version of Home Assistant Core?

2023.9.3

What type of installation are you running?

Home Assistant Core

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?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Oct 5, 2023

Hey there @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.

(message by CodeOwnersMention)


rainbird documentation
rainbird source
(message by IssueLinks)

@konikvranik konikvranik changed the title Rainbird resuses to start in HA 2023.10.0 Rainbird refuses to start in HA 2023.10.0 Oct 5, 2023
@abraxxa
Copy link

abraxxa commented Oct 5, 2023

For me the integration readded all entities with their English names. The existing ones where German.
After deleting and adding the integration again it doesn‘t add any entities although the debug logging shows successful RPC calls.

@ThomasBergholdWieser
Copy link

I have the same issue, all entities have been reported as been "no longer provided by the integration" as well as new entities appearing, that cannot be controlled. I reverted back to 2023.9 and it works again.

@sfanel
Copy link

sfanel commented Oct 5, 2023

My problem is that after the update to 2023.10 the entities were unavailable. After a restart and adding the integration again there are no devices or entities inside

@btaczala
Copy link

btaczala commented Oct 5, 2023

Can confirm I have the same problem as @sfanel and @ThomasBergholdWieser
Here's the log:

2023-10-05 11:17:02.583 DEBUG (MainThread) [pyrainbird.async_client] Request (SerialNumberRequest): 05
2023-10-05 11:17:02.583 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497422.5837755, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "05", "length": 1}}
2023-10-05 11:17:03.063 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497422.5837755,"jsonrpc":"2.0","result":{"data":"850000000000000000","length":9}}
2023-10-05 11:17:03.064 DEBUG (MainThread) [pyrainbird.async_client] Response from line: 850000000000000000
2023-10-05 11:17:03.064 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'SerialNumberResponse', 'serialNumber': 0}
2023-10-05 11:17:03.065 DEBUG (MainThread) [pyrainbird.async_client] Request (ModelAndVersionRequest): 02
2023-10-05 11:17:03.065 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497423.0658128, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "02", "length": 1}}
2023-10-05 11:17:03.499 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497423.0658128,"jsonrpc":"2.0","result":{"data":"8200030209","length":5}}
2023-10-05 11:17:03.499 DEBUG (MainThread) [pyrainbird.async_client] Response from line: 8200030209
2023-10-05 11:17:03.500 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'ModelAndVersionResponse', 'modelID': 3, 'protocolRevisionMajor': 2, 'protocolRevisionMinor': 9}
2023-10-05 11:17:03.501 DEBUG (MainThread) [pyrainbird.async_client] Request (AvailableStationsRequest): 0300
2023-10-05 11:17:03.501 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497423.501472, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "0300", "length": 2}}
2023-10-05 11:17:03.941 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497423.501472,"jsonrpc":"2.0","result":{"data":"8300FF000000","length":6}}
2023-10-05 11:17:03.942 DEBUG (MainThread) [pyrainbird.async_client] Response from line: 8300FF000000
2023-10-05 11:17:03.942 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'AvailableStationsResponse', 'pageNumber': 0, 'setStations': 4278190080}
2023-10-05 11:17:03.942 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 11:17:03.943 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497423.9431229, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 11:17:04.390 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497423.9431229,"jsonrpc":"2.0","result":{"data":"BF0000000000","length":6}}
2023-10-05 11:17:04.391 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0000000000
2023-10-05 11:17:04.391 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 0}
2023-10-05 11:17:04.391 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 11:17:04.392 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497424.39215, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 11:17:04.826 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497424.39215,"jsonrpc":"2.0","result":{"data":"BE00","length":2}}
2023-10-05 11:17:04.827 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 11:17:04.827 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 11:17:04.827 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 11:17:04.828 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497424.8280864, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 11:17:05.229 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497424.8280864,"jsonrpc":"2.0","result":{"data":"B60000","length":3}}
2023-10-05 11:17:05.230 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 11:17:05.230 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}
2023-10-05 11:17:05.231 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.20.49 data in 1.730 seconds (success: True)
2023-10-05 11:17:05.233 INFO (MainThread) [homeassistant.components.switch] Setting up switch.rainbird
2023-10-05 11:17:05.235 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rainbird
2023-10-05 11:17:05.236 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.rainbird
2023-10-05 11:17:05.236 INFO (MainThread) [homeassistant.components.number] Setting up number.rainbird
2023-10-05 11:17:05.237 INFO (MainThread) [homeassistant.components.calendar] Setting up calendar.rainbird
2023-10-05 11:18:05.504 DEBUG (MainThread) [pyrainbird.async_client] Returned cached result for key 'AvailableStationsRequest-(0,)'
2023-10-05 11:18:05.504 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 11:18:05.505 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497485.5051382, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 11:18:06.002 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497485.5051382,"jsonrpc":"2.0","result":{"data":"BF0000000000","length":6}}
2023-10-05 11:18:06.003 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0000000000
2023-10-05 11:18:06.003 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 0}
2023-10-05 11:18:06.003 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 11:18:06.003 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497486.0037847, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 11:18:06.452 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497486.0037847,"jsonrpc":"2.0","result":{"data":"BE00","length":2}}
2023-10-05 11:18:06.452 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 11:18:06.452 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 11:18:06.452 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 11:18:06.453 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497486.4529963, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 11:18:06.843 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497486.4529963,"jsonrpc":"2.0","result":{"data":"B60000","length":3}}
2023-10-05 11:18:06.844 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 11:18:06.844 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}
2023-10-05 11:18:06.845 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.20.49 data in 1.341 seconds (success: True)
2023-10-05 11:19:06.504 DEBUG (MainThread) [pyrainbird.async_client] Returned cached result for key 'AvailableStationsRequest-(0,)'
2023-10-05 11:19:06.504 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 11:19:06.504 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497546.5048544, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 11:19:07.075 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497546.5048544,"jsonrpc":"2.0","result":{"data":"BF0000000000","length":6}}
2023-10-05 11:19:07.076 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0000000000
2023-10-05 11:19:07.076 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 0}
2023-10-05 11:19:07.077 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 11:19:07.077 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497547.0772247, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 11:19:07.854 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497547.0772247,"jsonrpc":"2.0","result":{"data":"BE00","length":2}}
2023-10-05 11:19:07.854 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 11:19:07.855 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 11:19:07.855 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 11:19:07.855 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497547.855643, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 11:19:08.653 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497547.855643,"jsonrpc":"2.0","result":{"data":"B60000","length":3}}
2023-10-05 11:19:08.653 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 11:19:08.654 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}
2023-10-05 11:19:08.654 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.20.49 data in 2.150 seconds (success: True)
2023-10-05 11:19:38.421 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.71', 54854): Connection made to HASS Bridge
2023-10-05 11:19:51.797 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.40', 38176): Connection made to HASS Bridge
2023-10-05 11:20:08.504 DEBUG (MainThread) [pyrainbird.async_client] Returned cached result for key 'AvailableStationsRequest-(0,)'
2023-10-05 11:20:08.505 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 11:20:08.505 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497608.505537, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 11:20:09.008 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497608.505537,"jsonrpc":"2.0","result":{"data":"BF0000000000","length":6}}
2023-10-05 11:20:09.008 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0000000000
2023-10-05 11:20:09.009 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 0}
2023-10-05 11:20:09.009 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 11:20:09.009 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497609.0093007, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 11:20:09.460 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497609.0093007,"jsonrpc":"2.0","result":{"data":"BE00","length":2}}
2023-10-05 11:20:09.461 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 11:20:09.461 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 11:20:09.461 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 11:20:09.462 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497609.4620976, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 11:20:09.893 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497609.4620976,"jsonrpc":"2.0","result":{"data":"B60000","length":3}}
2023-10-05 11:20:09.893 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 11:20:09.894 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}
2023-10-05 11:20:09.894 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.20.49 data in 1.390 seconds (success: True)
2023-10-05 11:21:09.504 DEBUG (MainThread) [pyrainbird.async_client] Returned cached result for key 'AvailableStationsRequest-(0,)'
2023-10-05 11:21:09.505 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 11:21:09.505 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497669.505235, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 11:21:10.019 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497669.505235,"jsonrpc":"2.0","result":{"data":"BF0001000000","length":6}}
2023-10-05 11:21:10.019 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0001000000
2023-10-05 11:21:10.019 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 16777216}
2023-10-05 11:21:10.020 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 11:21:10.020 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497670.0203187, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 11:21:10.457 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497670.0203187,"jsonrpc":"2.0","result":{"data":"BE00","length":2}}
2023-10-05 11:21:10.458 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 11:21:10.458 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 11:21:10.458 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 11:21:10.458 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497670.4587815, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 11:21:10.909 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497670.4587815,"jsonrpc":"2.0","result":{"data":"B60000","length":3}}
2023-10-05 11:21:10.910 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 11:21:10.910 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}
2023-10-05 11:21:10.910 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.20.49 data in 1.406 seconds (success: True)
2023-10-05 11:22:10.504 DEBUG (MainThread) [pyrainbird.async_client] Returned cached result for key 'AvailableStationsRequest-(0,)'
2023-10-05 11:22:10.504 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 11:22:10.505 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497730.5050802, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 11:22:10.968 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497730.5050802,"jsonrpc":"2.0","result":{"data":"BF0000000000","length":6}}
2023-10-05 11:22:10.969 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0000000000
2023-10-05 11:22:10.969 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 0}
2023-10-05 11:22:10.969 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 11:22:10.970 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497730.970026, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 11:22:11.405 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497730.970026,"jsonrpc":"2.0","result":{"data":"BE00","length":2}}
2023-10-05 11:22:11.405 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 11:22:11.405 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 11:22:11.406 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 11:22:11.406 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696497731.4062724, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 11:22:12.204 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696497731.4062724,"jsonrpc":"2.0","result":{"data":"B60000","length":3}}
2023-10-05 11:22:12.204 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 11:22:12.204 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}
2023-10-05 11:22:12.205 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.20.49 data in 1.701 seconds (success: True)

@konikvranik
Copy link
Contributor Author

It all seems to be related to the pydantic issue. But I'm not the lucky one for whom the rollback to the 2023.9.3 worked. It complains also there. The related issue is #101042 and also pydantic/pydantic#7689

@frenck
Copy link
Member

frenck commented Oct 5, 2023

This PR is an issue with Pydantic, and when installing Home Assistant Core manually (in a Python environment), you are in control of that environment. Pydantic has incorrectly pinnen cython, (see also as linked above by @konikvranik).

Make sure you have a compatible cython version installed on your system.

This is not in control of Home Assistant, nor are we able to adjust your environment.

../Frenck

@abraxxa
Copy link

abraxxa commented Oct 5, 2023

I'm running the official homeassistant docker image.

@ThomasBergholdWieser
Copy link

I installed the official version of Home Assistant off the website with the rain bird integration. I am unsure what to do or how i would ensure a compatible cython version.

@frenck
Copy link
Member

frenck commented Oct 5, 2023

@abraxxa @ThomasBergholdWieser This issue was reported against the "Home Assistant Core" installation type (in which the end-user is responsible for setting up and maintaining the Python environment).

If you run Home Assistant Operating System, Supervised, or Container installation types, this issue can have a different source: Custom integrations. For example, the custom integration for Roborock (not the one we ship) is known to bring in this problematic dependency.

In those cases, please rename your custom integrations folder (e.g., custom_component to custom_component_disabled) and rebuild your HA container (using Home Assistant Operating System or Supervised, this can be done by running the ha core rebuild command on an available terminal).

That will eliminate custom integration to rule them out as an issue.

../Frenck

@abraxxa
Copy link

abraxxa commented Oct 5, 2023

Thanks for the pointer. I haven't opened the issue but just commented on it while searching for an already open one after encountering the issue.
I'm running two custom integrations that haven't caused issues so far: hacs and dahua.

@abraxxa
Copy link

abraxxa commented Oct 5, 2023

Disabling the dahua integration didn't help.
I can't disable HACS as I need it for other things.
Can I check if HACS itself or some installed frontend causes the issue?

@adorobis
Copy link

adorobis commented Oct 5, 2023

Not sure if this is exactly the same issue for me. Running HA in docker, after upgrade I have the following in the log:

2023-10-05 13:48:12.151 ERROR (MainThread) [homeassistant.components.rainbird.coordinator] Error fetching 10.144.1.121 data: Rain Bird device failure

and all entities are "no longer being provided by the rainbird integration. If the entity is no longer in use, delete it in settings.". No other errors in the log that I could associate with rainbird integration.
I've also enabled debug log for rainbird and here is the outcome after ha restart:

2023-10-05 14:24:29.978 DEBUG (MainThread) [pyrainbird.async_client] Request (ModelAndVersionRequest): 02
2023-10-05 14:24:29.978 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696508669.9787104, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "02", "length": 1}}
2023-10-05 14:24:31.153 DEBUG (MainThread) [pyrainbird.async_client] Response: {"jsonrpc": "2.0", "result":{"length":5, "data":"8200060100"}, "id": 0}
2023-10-05 14:24:31.153 DEBUG (MainThread) [pyrainbird.async_client] Response from line: 8200060100
2023-10-05 14:24:31.153 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'ModelAndVersionResponse', 'modelID': 6, 'protocolRevisionMajor': 1, 'protocolRevisionMinor': 0}
2023-10-05 14:24:31.153 DEBUG (MainThread) [pyrainbird.async_client] Request (AvailableStationsRequest): 0300
2023-10-05 14:24:31.153 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696508671.1536999, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "0300", "length": 2}}
2023-10-05 14:24:31.814 DEBUG (MainThread) [pyrainbird.async_client] Response: {"jsonrpc": "2.0", "result":{"length":6, "data":"8300FF000000"}, "id": 0}
2023-10-05 14:24:31.814 DEBUG (MainThread) [pyrainbird.async_client] Response from line: 8300FF000000
2023-10-05 14:24:31.814 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'AvailableStationsResponse', 'pageNumber': 0, 'setStations': 4278190080}
2023-10-05 14:24:31.814 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 14:24:31.814 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696508671.8145082, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 14:24:32.204 DEBUG (MainThread) [pyrainbird.async_client] Response: {"jsonrpc": "2.0", "result":{"length":6, "data":"BF0000000000"}, "id": 0}
2023-10-05 14:24:32.204 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0000000000
2023-10-05 14:24:32.204 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 0}
2023-10-05 14:24:32.204 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 14:24:32.204 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696508672.204303, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 14:24:32.599 DEBUG (MainThread) [pyrainbird.async_client] Response: {"jsonrpc": "2.0", "result":{"length":2, "data":"BE00"}, "id": 0}
2023-10-05 14:24:32.599 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 14:24:32.599 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 14:24:32.599 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 14:24:32.599 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696508672.5997853, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 14:24:33.049 DEBUG (MainThread) [pyrainbird.async_client] Response: {"jsonrpc": "2.0", "result":{"length":3, "data":"B60000"}, "id": 0}
2023-10-05 14:24:33.049 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 14:24:33.049 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}

@joostlek
Copy link
Member

joostlek commented Oct 5, 2023

Please create separate issue

@adorobis
Copy link

adorobis commented Oct 5, 2023

Please create separate issue

#101470

@btaczala
Copy link

btaczala commented Oct 5, 2023

@frenck I've repeated the steps you've mentioned:

mv custom_component custom_component_disabled
ha core rebuild

and restarted HS.
After restart the custom itegrations are indeed not loaded though RainBird still doesn't properly pick up devices nor entities.
From logs I can see it can may have some problems communicating with RainBird controller:

2023-10-05 15:07:46.455 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.20.49 data in 4.147 seconds (success: False)
2023-10-05 15:07:46.455 WARNING (MainThread) [homeassistant.config_entries] Config entry '192.168.20.49' for rainbird integration not ready yet: Rain Bird device failure; Retrying in background
...
2023-10-05 15:08:06.055 DEBUG (MainThread) [pyrainbird.async_client] Request (ModelAndVersionRequest): 02
2023-10-05 15:08:06.055 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696511286.0557384, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "02", "length": 1}}
2023-10-05 15:08:07.642 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696511286.0557384,"jsonrpc":"2.0","result":{"data":"8200030209","length":5}}
2023-10-05 15:08:07.642 DEBUG (MainThread) [pyrainbird.async_client] Response from line: 8200030209
2023-10-05 15:08:07.642 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'ModelAndVersionResponse', 'modelID': 3, 'protocolRevisionMajor': 2, 'protocolRevisionMinor': 9}
2023-10-05 15:08:07.643 DEBUG (MainThread) [pyrainbird.async_client] Request (AvailableStationsRequest): 0300
2023-10-05 15:08:07.643 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696511287.6434371, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "0300", "length": 2}}
2023-10-05 15:08:08.071 INFO (SyncWorker_7) [homeassistant.loader] Loaded songpal from homeassistant.components.songpal
2023-10-05 15:08:08.573 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696511287.6434371,"jsonrpc":"2.0","result":{"data":"8300FF000000","length":6}}
2023-10-05 15:08:08.573 DEBUG (MainThread) [pyrainbird.async_client] Response from line: 8300FF000000
2023-10-05 15:08:08.573 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'AvailableStationsResponse', 'pageNumber': 0, 'setStations': 4278190080}
2023-10-05 15:08:08.574 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentStationsActiveRequest): 3F00
2023-10-05 15:08:08.574 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696511288.574159, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3F00", "length": 2}}
2023-10-05 15:08:08.595 INFO (SyncWorker_5) [homeassistant.loader] Loaded qnap_qsw from homeassistant.components.qnap_qsw
2023-10-05 15:08:09.291 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696511288.574159,"jsonrpc":"2.0","result":{"data":"BF0000000000","length":6}}
2023-10-05 15:08:09.292 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BF0000000000
2023-10-05 15:08:09.292 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentStationsActiveResponse', 'pageNumber': 0, 'activeStations': 0}
2023-10-05 15:08:09.292 DEBUG (MainThread) [pyrainbird.async_client] Request (CurrentRainSensorStateRequest): 3E
2023-10-05 15:08:09.293 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696511289.292884, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "3E", "length": 1}}
2023-10-05 15:08:09.724 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696511289.292884,"jsonrpc":"2.0","result":{"data":"BE00","length":2}}
2023-10-05 15:08:09.724 DEBUG (MainThread) [pyrainbird.async_client] Response from line: BE00
2023-10-05 15:08:09.724 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'CurrentRainSensorStateResponse', 'sensorState': 0}
2023-10-05 15:08:09.725 DEBUG (MainThread) [pyrainbird.async_client] Request (RainDelayGetRequest): 36
2023-10-05 15:08:09.725 DEBUG (MainThread) [pyrainbird.async_client] Request: {"id": 1696511289.7252486, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "36", "length": 1}}
2023-10-05 15:08:10.173 DEBUG (MainThread) [pyrainbird.async_client] Response: {"id":1696511289.7252486,"jsonrpc":"2.0","result":{"data":"B60000","length":3}}
2023-10-05 15:08:10.173 DEBUG (MainThread) [pyrainbird.async_client] Response from line: B60000
2023-10-05 15:08:10.173 DEBUG (MainThread) [pyrainbird.async_client] Response: {'type': 'RainDelaySettingResponse', 'delaySetting': 0}

@PiotrasHASS
Copy link

Same in my HomeAssistant
After update to version 2023.10.0 all entities gone
I try to remove rainbird Integration and back there is no entities

@konikvranik
Copy link
Contributor Author

HA 2023.10.0 broke something, so I have the issue also when I removed the venv, cleared caches and installed HA 2023.9.3.
Sttill:

Oct 05 16:23:05 hass.home hass[17066]: 2023-10-05 16:23:05.776 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component homeassistant.components.rainbird
Oct 05 16:23:05 hass.home hass[17066]: Traceback (most recent call last):
Oct 05 16:23:05 hass.home hass[17066]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py", line 818, in get_component
Oct 05 16:23:05 hass.home hass[17066]:     ComponentProtocol, importlib.import_module(self.pkg_path)
Oct 05 16:23:05 hass.home hass[17066]:                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 16:23:05 hass.home hass[17066]:   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
Oct 05 16:23:05 hass.home hass[17066]:     return _bootstrap._gcd_import(name[level:], package, level)
Oct 05 16:23:05 hass.home hass[17066]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 16:23:05 hass.home hass[17066]:   File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
Oct 05 16:23:05 hass.home hass[17066]:   File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
Oct 05 16:23:05 hass.home hass[17066]:   File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
Oct 05 16:23:05 hass.home hass[17066]:   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
Oct 05 16:23:05 hass.home hass[17066]:   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
Oct 05 16:23:05 hass.home hass[17066]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Oct 05 16:23:05 hass.home hass[17066]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/rainbird/__init__.py", line 4, in <module>
Oct 05 16:23:05 hass.home hass[17066]:     from pyrainbird.async_client import AsyncRainbirdClient, AsyncRainbirdController
Oct 05 16:23:05 hass.home hass[17066]:   File "/srv/homeassistant/lib/python3.11/site-packages/pyrainbird/async_client.py", line 26, in <module>
Oct 05 16:23:05 hass.home hass[17066]:     from .data import (
Oct 05 16:23:05 hass.home hass[17066]:   File "/srv/homeassistant/lib/python3.11/site-packages/pyrainbird/data.py", line 196, in <module>
Oct 05 16:23:05 hass.home hass[17066]:     class WifiParams(BaseModel):
Oct 05 16:23:05 hass.home hass[17066]:   File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
Oct 05 16:23:05 hass.home hass[17066]: TypeError: Argument 'bases' has incorrect type (expected list, got tuple)

@joostlek
Copy link
Member

joostlek commented Oct 5, 2023

@konikvranik it's most likely caused by a custom intergation, please follow the instructions described in #101443 (comment)

@konikvranik
Copy link
Contributor Author

@konikvranik it's most likely caused by a custom intergation, please follow the instructions described in #101443 (comment)

It is not. I tried it also with custom_components remove, but the behavior is still the same.

@joostlek
Copy link
Member

joostlek commented Oct 5, 2023

do you use HAOS?

@konikvranik
Copy link
Contributor Author

HA core on Raspberry Pi with raspbian

@joostlek
Copy link
Member

joostlek commented Oct 5, 2023

pip install pydantic==1.10.12

@konikvranik
Copy link
Contributor Author

yes, I tried it and it just confirmed that I'm already using pydantic==1.10.12

@joostlek
Copy link
Member

joostlek commented Oct 5, 2023

Can you try 1.10.11 just to make sure?

@allenporter
Copy link
Contributor

allenporter commented Oct 5, 2023

Generally we're seeing that error workgin in 1.10.11, broken in 1.10.12 and fixed in 1.10.13 so something is still pulling in 12 somewhere. I'm sure you handled this but just want to clarify, the environment needs to be fixed again after custom_components are disabled since they'll upgrade the environment and leave it tainted even after they are disabled.

@joostlek
Copy link
Member

joostlek commented Oct 5, 2023

Other way around, 1.10.13 was built with a different cython and broke stuff. 1.10.12 should work, I am running it as well. That's why we pinned it on 1.10.12

@konikvranik
Copy link
Contributor Author

Can you try 1.10.11 just to make sure?

Retried with 1.10.11, but still the same:

Oct 05 17:01:14 hass.home hass[21211]:   File "/srv/homeassistant/lib/python3.11/site-packages/zwave_js_server/client.py", line 26, in <module>
Oct 05 17:01:14 hass.home hass[21211]:     from .event import Event
Oct 05 17:01:14 hass.home hass[21211]:   File "/srv/homeassistant/lib/python3.11/site-packages/zwave_js_server/event.py", line 16, in <module>
Oct 05 17:01:14 hass.home hass[21211]:     class BaseEventModel(BaseModel):
Oct 05 17:01:14 hass.home hass[21211]:   File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
Oct 05 17:01:14 hass.home hass[21211]: TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
Oct 05 17:01:14 hass.home hass[21211]: The above exception was the direct cause of the following exception:

@konikvranik
Copy link
Contributor Author

Currently I have Cython 0.29.32. Is it correct?

@konikvranik
Copy link
Contributor Author

Just for info, this is installed:

 (homeassistant)  homeassistant@hass  ~  pip install --upgrade homeassistant                                                                                                                                                                                                                                                                             :21s  ☛346  17:15:39/05.10.
zsh: correct 'homeassistant' to '.homeassistant' [nyae]? n
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting homeassistant
  Downloading https://www.piwheels.org/simple/homeassistant/homeassistant-2023.10.0-py3-none-any.whl (30.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 30.2/30.2 MB 504.4 kB/s eta 0:00:00
Collecting aiohttp==3.8.5
  Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.8.5-cp311-cp311-linux_armv7l.whl (953 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 953.5/953.5 kB 1.1 MB/s eta 0:00:00
Collecting astral==2.2
  Downloading https://www.piwheels.org/simple/astral/astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting attrs==23.1.0
  Downloading https://www.piwheels.org/simple/attrs/attrs-23.1.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 171.2 kB/s eta 0:00:00
Collecting atomicwrites-homeassistant==1.4.1
  Downloading https://www.piwheels.org/simple/atomicwrites-homeassistant/atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Collecting awesomeversion==23.8.0
  Downloading https://www.piwheels.org/simple/awesomeversion/awesomeversion-23.8.0-py3-none-any.whl (13 kB)
Collecting bcrypt==4.0.1
  Downloading https://www.piwheels.org/simple/bcrypt/bcrypt-4.0.1-cp311-cp311-linux_armv7l.whl (720 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 720.6/720.6 kB 3.4 MB/s eta 0:00:00
Collecting certifi>=2021.5.30
  Downloading https://www.piwheels.org/simple/certifi/certifi-2023.7.22-py3-none-any.whl (158 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 kB 3.6 MB/s eta 0:00:00
Collecting ciso8601==2.3.0
  Downloading https://www.piwheels.org/simple/ciso8601/ciso8601-2.3.0-cp311-cp311-linux_armv7l.whl (36 kB)
Collecting httpx==0.24.1
  Downloading https://www.piwheels.org/simple/httpx/httpx-0.24.1-py3-none-any.whl (75 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.4/75.4 kB 1.4 MB/s eta 0:00:00
Collecting home-assistant-bluetooth==1.10.3
  Downloading https://www.piwheels.org/simple/home-assistant-bluetooth/home_assistant_bluetooth-1.10.3-cp311-cp311-manylinux_2_36_armv7l.whl (335 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 335.1/335.1 kB 3.4 MB/s eta 0:00:00
Collecting ifaddr==0.2.0
  Downloading https://www.piwheels.org/simple/ifaddr/ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting Jinja2==3.1.2
  Downloading https://www.piwheels.org/simple/jinja2/Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 3.0 MB/s eta 0:00:00
Collecting lru-dict==1.2.0
  Downloading https://www.piwheels.org/simple/lru-dict/lru_dict-1.2.0-cp311-cp311-linux_armv7l.whl (26 kB)
Collecting PyJWT==2.8.0
  Downloading https://www.piwheels.org/simple/pyjwt/PyJWT-2.8.0-py3-none-any.whl (22 kB)
Collecting cryptography==41.0.4
  Downloading https://www.piwheels.org/simple/cryptography/cryptography-41.0.4-cp311-cp311-linux_armv7l.whl (2.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 4.6 MB/s eta 0:00:00
Collecting pyOpenSSL==23.2.0
  Downloading https://www.piwheels.org/simple/pyopenssl/pyOpenSSL-23.2.0-py3-none-any.whl (59 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 kB 2.4 MB/s eta 0:00:00
Collecting orjson==3.9.7
  Downloading orjson-3.9.7-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (129 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 129.5/129.5 kB 1.1 MB/s eta 0:00:00
Collecting packaging>=23.1
  Downloading https://www.piwheels.org/simple/packaging/packaging-23.2-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 801.3 kB/s eta 0:00:00
Requirement already satisfied: pip>=21.3.1 in /srv/homeassistant/lib/python3.11/site-packages (from homeassistant) (23.0.1)
Collecting python-slugify==4.0.1
  Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-4.0.1-py2.py3-none-any.whl (7.0 kB)
Collecting PyYAML==6.0.1
  Downloading https://www.piwheels.org/simple/pyyaml/PyYAML-6.0.1-cp311-cp311-linux_armv7l.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.4/45.4 kB 866.4 kB/s eta 0:00:00
Collecting requests==2.31.0
  Downloading https://www.piwheels.org/simple/requests/requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 1.1 MB/s eta 0:00:00
Collecting typing-extensions<5.0,>=4.8.0
  Downloading https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting ulid-transform==0.8.1
  Downloading https://www.piwheels.org/simple/ulid-transform/ulid_transform-0.8.1-cp311-cp311-manylinux_2_36_armv7l.whl (217 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 217.6/217.6 kB 2.5 MB/s eta 0:00:00
Collecting voluptuous==0.13.1
  Downloading https://www.piwheels.org/simple/voluptuous/voluptuous-0.13.1-py3-none-any.whl (35 kB)
Collecting voluptuous-serialize==2.6.0
  Downloading https://www.piwheels.org/simple/voluptuous-serialize/voluptuous_serialize-2.6.0-py3-none-any.whl (6.8 kB)
Collecting yarl==1.9.2
  Downloading https://www.piwheels.org/simple/yarl/yarl-1.9.2-cp311-cp311-linux_armv7l.whl (216 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 216.7/216.7 kB 2.0 MB/s eta 0:00:00
Collecting charset-normalizer<4.0,>=2.0
  Downloading https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-3.3.0-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.2/48.2 kB 777.7 kB/s eta 0:00:00
Collecting multidict<7.0,>=4.5
  Downloading https://www.piwheels.org/simple/multidict/multidict-6.0.4-cp311-cp311-linux_armv7l.whl (115 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 115.8/115.8 kB 1.4 MB/s eta 0:00:00
Collecting async-timeout<5.0,>=4.0.0a3
  Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting frozenlist>=1.1.1
  Downloading https://www.piwheels.org/simple/frozenlist/frozenlist-1.4.0-cp311-cp311-linux_armv7l.whl (193 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 193.1/193.1 kB 1.3 MB/s eta 0:00:00
Collecting aiosignal>=1.1.2
  Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting pytz
  Downloading https://www.piwheels.org/simple/pytz/pytz-2023.3.post1-py3-none-any.whl (502 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 kB 2.4 MB/s eta 0:00:00
Collecting cffi>=1.12
  Downloading https://www.piwheels.org/simple/cffi/cffi-1.16.0-cp311-cp311-linux_armv7l.whl (382 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 382.3/382.3 kB 2.9 MB/s eta 0:00:00
Collecting httpcore<0.18.0,>=0.15.0
  Downloading https://www.piwheels.org/simple/httpcore/httpcore-0.17.3-py3-none-any.whl (74 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.5/74.5 kB 1.4 MB/s eta 0:00:00
Collecting idna
  Downloading https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 2.2 MB/s eta 0:00:00
Collecting sniffio
  Downloading https://www.piwheels.org/simple/sniffio/sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting MarkupSafe>=2.0
  Downloading https://www.piwheels.org/simple/markupsafe/MarkupSafe-2.1.3-cp311-cp311-linux_armv7l.whl (26 kB)
Collecting text-unidecode>=1.3
  Downloading https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 1.3 MB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1
  Downloading https://www.piwheels.org/simple/urllib3/urllib3-2.0.6-py3-none-any.whl (123 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.8/123.8 kB 1.5 MB/s eta 0:00:00
Collecting pycparser
  Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.7/119.7 kB 1.2 MB/s eta 0:00:00
Collecting h11<0.15,>=0.13
  Downloading https://www.piwheels.org/simple/h11/h11-0.14.0-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 952.4 kB/s eta 0:00:00
Collecting anyio<5.0,>=3.0
  Downloading https://www.piwheels.org/simple/anyio/anyio-4.0.0-py3-none-any.whl (83 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.1/83.1 kB 1.2 MB/s eta 0:00:00
Installing collected packages: voluptuous, text-unidecode, pytz, lru-dict, ifaddr, ciso8601, voluptuous-serialize, urllib3, ulid-transform, typing-extensions, sniffio, PyYAML, python-slugify, PyJWT, pycparser, packaging, orjson, multidict, MarkupSafe, idna, home-assistant-bluetooth, h11, frozenlist, charset-normalizer, certifi, bcrypt, awesomeversion, attrs, atomicwrites-homeassistant, async-timeout, astral, yarl, requests, Jinja2, cffi, anyio, aiosignal, httpcore, cryptography, aiohttp, pyOpenSSL, httpx, homeassistant
Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 PyJWT-2.8.0 PyYAML-6.0.1 aiohttp-3.8.5 aiosignal-1.3.1 anyio-4.0.0 astral-2.2 async-timeout-4.0.3 atomicwrites-homeassistant-1.4.1 attrs-23.1.0 awesomeversion-23.8.0 bcrypt-4.0.1 certifi-2023.7.22 cffi-1.16.0 charset-normalizer-3.3.0 ciso8601-2.3.0 cryptography-41.0.4 frozenlist-1.4.0 h11-0.14.0 home-assistant-bluetooth-1.10.3 homeassistant-2023.10.0 httpcore-0.17.3 httpx-0.24.1 idna-3.4 ifaddr-0.2.0 lru-dict-1.2.0 multidict-6.0.4 orjson-3.9.7 packaging-23.2 pyOpenSSL-23.2.0 pycparser-2.21 python-slugify-4.0.1 pytz-2023.3.post1 requests-2.31.0 sniffio-1.3.0 text-unidecode-1.3 typing-extensions-4.8.0 ulid-transform-0.8.1 urllib3-2.0.6 voluptuous-0.13.1 voluptuous-serialize-2.6.0 yarl-1.9.2
 

@konikvranik
Copy link
Contributor Author

So, upgrading to pydantic-2.4.2 helped. But it is not compatible with google calendar sync :-/

@allenporter
Copy link
Contributor

@konikvranik fwiw the gcal sync library runs CI against both pydantic v2 and v1 so not sure what you mean by that.

@allenporter
Copy link
Contributor

Ah sorry, you're right, its not released yet. Anyway, i'm not able to reproduce the problem here... hm

@konikvranik
Copy link
Contributor Author

On my RPi it looks like none of pydantic 1.10.* works.
So it would be great if all components will be upgraded to 2.4.* or greater.

@allenporter
Copy link
Contributor

allenporter commented Oct 6, 2023

Home assistant does not yet support pydantic v2 though #99218 tracks progress on the upgrades.

@gm27271
Copy link

gm27271 commented Oct 9, 2023

It started working after update to 2023.10.1.

@konikvranik
Copy link
Contributor Author

To make it work in 2023.10.* I have to manually enforce version of pydantic to 1.10.10. Neither of 1.10.11, 1.10.12, 1.10.13 worked.

@allenporter
Copy link
Contributor

@konikvranik the comment in #101443 (comment) still applies as i don't think we're seeing this outside of core installations -- #101525 does have some discussion as well which sounds similar to your observations. Unclear why pinning to the version in HA works for OS and docker but not core. Maybe something specific to how the HA wheels are built...

@konikvranik
Copy link
Contributor Author

Could be. My thoughts were whether it's not RPi or Raspbian related.

@coza73
Copy link

coza73 commented Oct 13, 2023

I am running Home-Assistant OS 2023.10.2 and I am seeing the issue that no devices or entities are being shown.

Supervisor 2023.10.0
Operating System 10.5
Frontend 20231005.0 - latest

I am getting this in the logs

Logger: homeassistant.components.rainbird.coordinator
Source: helpers/update_coordinator.py:290
Integration: Rain Bird (documentation, issues)
First occurred: 12:32:06 PM (1 occurrences)
Last logged: 12:32:06 PM

Unexpected error fetching 192.168.3.100 Schedule data: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, 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.11/site-packages/pyrainbird/async_client.py", line 428, in get_schedule
result = await self._process_command(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyrainbird/async_client.py", line 489, in _process_command
decoded = rainbird.decode(decrypted_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyrainbird/rainbird.py", line 179, in decode
return {TYPE: cmd_template[TYPE], **decoder(data, cmd_template)}
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyrainbird/rainbird.py", line 43, in decode_schedule
"rainDelay": int(rest[4:6]),
^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

@allenporter
Copy link
Contributor

Please file a separate issue, thank you.

@joostlek
Copy link
Member

Could be. My thoughts were whether it's not RPi or Raspbian related.

I maybe have an update, checkout this issue: piwheels/packages#396. If I read this correct this problem should maybe now be solved.

@robert-helios
Copy link

Well I must have bad timing or something, just purchased my rain bird and couldn't understand why it wasn't working.

Do we have any manual resolutions or is it a waiting game until the dependencies update and come down the line?

@joostlek
Copy link
Member

Are you running HAOS or on raspbian? Because raspbian should be solved if I understand the issue linked above correctly. (Maybe if you did download pydantic before we should need to find a way to remove it from you cache and have it force a redownload.)

@robert-helios
Copy link

HAOS, I'll just wait for the updates to come through.
Thanks

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests