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

broken hs.csv.gz in signify/LCA006 #272

Closed
tomsoftcom opened this issue Sep 26, 2021 · 2 comments
Closed

broken hs.csv.gz in signify/LCA006 #272

tomsoftcom opened this issue Sep 26, 2021 · 2 comments

Comments

@tomsoftcom
Copy link
Contributor

Logger: homeassistant.components.sensor
Source: custom_components/powercalc/strategy_lut.py:60
Integration: Sensor (documentation, issues)
First occurred: 13:07:50 (1 occurrences)
Last logged: 13:07:50

Error while setting up powercalc platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/powercalc/sensor.py", line 207, in async_setup_platform
entities.extend(await create_individual_sensors(hass, merged_sensor_config))
File "/config/custom_components/powercalc/sensor.py", line 262, in create_individual_sensors
power_sensor = await create_power_sensor(hass, sensor_config, source_entity)
File "/config/custom_components/powercalc/sensor.py", line 382, in create_power_sensor
await calculation_strategy.validate_config(source_entity)
File "/config/custom_components/powercalc/strategy_lut.py", line 217, in validate_config
await self._lut_registry.get_lookup_dictionary(
File "/config/custom_components/powercalc/strategy_lut.py", line 60, in get_lookup_dictionary
lookup_dict[int(row[0])][int(row[1])][int(row[2])] = float(
ValueError: could not convert string to float: 'watt'

@tomsoftcom
Copy link
Contributor Author

csv reader stumbles of a duplicated header line from an interrupted measurement

@bramstroker
Copy link
Owner

Will see if I can add an extra check to github action which validates CSV to prevent this issue in the future.

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

2 participants