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

Error when adding via HACS #1

Closed
bastichelaar opened this issue Feb 19, 2023 · 5 comments
Closed

Error when adding via HACS #1

bastichelaar opened this issue Feb 19, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@bastichelaar
Copy link

Awesome that you made this component! Unfortunately I encountered an error when adding it to Home Assistant:

custom_components.mypyllant

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.mypyllant
Source: deps/lib/python3.10/site-packages/myPyllant/models.py:114
Integration: myVAILLANT (documentation, issues)
First occurred: 23:03:40 (2 occurrences)
Last logged: 23:03:40

Unexpected error fetching myVAILLANT data: 1 validation error for Zone humidity field required (type=value_error.missing)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/mypyllant/__init__.py", line 114, in _async_update_data
    data = [
  File "/config/custom_components/mypyllant/__init__.py", line 114, in <listcomp>
    data = [
  File "/config/deps/lib/python3.10/site-packages/myPyllant/api.py", line 199, in get_systems
    system = System(
  File "/config/deps/lib/python3.10/site-packages/myPyllant/models.py", line 114, in __init__
    self.zones = [Zone(system_id=self.id, **z) for z in self._raw_zones]
  File "/config/deps/lib/python3.10/site-packages/myPyllant/models.py", line 114, in <listcomp>
    self.zones = [Zone(system_id=self.id, **z) for z in self._raw_zones]
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Zone
humidity
  field required (type=value_error.missing)

Using the component with a VR921. Thanks!

@signalkraft
Copy link
Owner

Thanks for reporting, try out https://github.com/signalkraft/mypyllant-component/releases/tag/v0.0.12 - I made the missing field optional.

This sort of problem will probably pop up a few more times while you're setting up this component, because I had no way of testing which data the myVAILLANT API returns for different installations. Please turn on debug logging for this integration if you encounter another problem and add it to this issue.

@signalkraft signalkraft self-assigned this Feb 20, 2023
@signalkraft signalkraft added the bug Something isn't working label Feb 20, 2023
@erikvtv
Copy link

erikvtv commented Feb 28, 2023

Also very happy with the component, only problems to get it work.

v0.0.17

See below logging, hopefully you can manage the problem

2023-02-28 13:21:32.303 ERROR (MainThread) [custom_components.mypyllant] Unexpected error fetching myVAILLANT data: 1 validation error for DomesticHotWater
current_dhw_tank_temperature
field required (type=value_error.missing)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/mypyllant/init.py", line 129, in _async_update_data
data = [
File "/config/custom_components/mypyllant/init.py", line 129, in
data = [
File "/usr/local/lib/python3.10/site-packages/myPyllant/api.py", line 198, in get_systems
system = System(
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 116, in init
self.domestic_hot_water = [
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 117, in
DomesticHotWater(system_id=self.id, **d)
File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 342, in init
raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for DomesticHotWater
current_dhw_tank_temperature
field required (type=value_error.missing)
2023-02-28 13:21:32.402 WARNING (MainThread) [homeassistant.config_entries] Config entry 'localhost' for eufy_security integration not ready yet; Retrying in background
2023-02-28 13:21:33.214 ERROR (MainThread) [custom_components.mypyllant] Unexpected error fetching myVAILLANT data: 1 validation error for DomesticHotWater
current_dhw_tank_temperature
field required (type=value_error.missing)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/mypyllant/init.py", line 146, in _async_update_data
async for system in await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/site-packages/myPyllant/api.py", line 198, in get_systems
system = System(
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 116, in init
self.domestic_hot_water = [
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 117, in
DomesticHotWater(system_id=self.id, **d)
File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 342, in init
raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for DomesticHotWater
current_dhw_tank_temperature
field required (type=value_error.missing)
2023-02-28 13:21:33.526 ERROR (MainThread) [custom_components.mypyllant] Unexpected error fetching myVAILLANT data: 1 validation error for DomesticHotWater
current_dhw_tank_temperature
field required (type=value_error.missing)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/mypyllant/init.py", line 167, in _async_update_data
async for system in await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/site-packages/myPyllant/api.py", line 198, in get_systems
system = System(
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 116, in init
self.domestic_hot_water = [
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 117, in
DomesticHotWater(system_id=self.id, **d)
File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 342, in init
raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for DomesticHotWater
current_dhw_tank_temperature
field required (type=value_error.missing)
2023-02-28 13:21:33.661 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up mypyllant platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/mypyllant/binary_sensor.py", line 32, in async_setup_entry
for index, system in enumerate(coordinator.data):
TypeError: 'NoneType' object is not iterable
2023-02-28 13:21:33.668 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up mypyllant platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/mypyllant/sensor.py", line 62, in async_setup_entry
for index, system in enumerate(system_coordinator.data):
TypeError: 'NoneType' object is not iterable
2023-02-28 13:21:33.674 ERROR (MainThread) [homeassistant.components.climate] Error while setting up mypyllant platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/mypyllant/climate.py", line 59, in async_setup_entry
for index, system in enumerate(coordinator.data):
TypeError: 'NoneType' object is not iterable
2023-02-28 13:21:33.683 ERROR (MainThread) [homeassistant.components.water_heater] Error while setting up mypyllant platform for water_heater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/mypyllant/water_heater.py", line 39, in async_setup_entry
for index, system in enumerate(coordinator.data):
TypeError: 'NoneType' object is not iterable

@signalkraft
Copy link
Owner

@erikvtv I created a new release that may fix your problem.

This sort of problem will probably pop up a few more times while you're setting up this component, because I had no way of testing which data the myVAILLANT API returns for different installations. Please turn on debug logging for this integration if you encounter another problem and add it to this issue.

@erikvtv
Copy link

erikvtv commented Feb 28, 2023

Hi Signalkraft,

thx v0.018 is fixing the problem

@signalkraft
Copy link
Owner

@erikvtv glad to hear that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants