Giter VIP home page Giter VIP logo

Comments (5)

signalkraft avatar signalkraft commented on June 19, 2024

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.

from mypyllant-component.

erikvtv avatar erikvtv commented on June 19, 2024

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

from mypyllant-component.

signalkraft avatar signalkraft commented on June 19, 2024

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

from mypyllant-component.

erikvtv avatar erikvtv commented on June 19, 2024

Hi Signalkraft,

thx v0.018 is fixing the problem

from mypyllant-component.

signalkraft avatar signalkraft commented on June 19, 2024

@erikvtv glad to hear that!

from mypyllant-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.