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

Throwing error in logs #21

Open
avidflyer17 opened this issue Nov 5, 2024 · 0 comments
Open

Throwing error in logs #21

avidflyer17 opened this issue Nov 5, 2024 · 0 comments

Comments

@avidflyer17
Copy link

avidflyer17 commented Nov 5, 2024

Hello,

Thanks for your work.

I'm glad you have worked on this integration and I'll be happy to help by testing use cases for you if it's required.

I'm getting periodically these errors in my docker logs :

File "/config/custom_components/cozytouch/climate.py", line 189, in _handle_coordinator_update self.coordinator.get_capability_value(self._capability["capabilityId"]) File "/config/custom_components/cozytouch/hub.py", line 406, in get_capability_value if capabilityId == capability["capabilityId"]: ~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: string indices must be integers, not 'str' 2024-11-05 01:21:06.870 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 453, in _async_refresh self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners update_callback() File "/config/custom_components/cozytouch/climate.py", line 189, in _handle_coordinator_update self.coordinator.get_capability_value(self._capability["capabilityId"]) File "/config/custom_components/cozytouch/hub.py", line 406, in get_capability_value if capabilityId == capability["capabilityId"]: ~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: string indices must be integers, not 'str' 2024-11-05 01:21:16.459 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 453, in _async_refresh self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners update_callback() File "/config/custom_components/cozytouch/climate.py", line 189, in _handle_coordinator_update self.coordinator.get_capability_value(self._capability["capabilityId"]) File "/config/custom_components/cozytouch/hub.py", line 406, in get_capability_value if capabilityId == capability["capabilityId"]: ~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: string indices must be integers, not 'str'

Do you think there's something you can do ?

On the other side, when Atlantic API are working, it looks like it's working pretty fine :)

image

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant