Skip to content

Integration Failing to load #20

@Mircelvdwalt

Description

@Mircelvdwalt

Had a second inverter installed and now i get "can't convert string to float" error

Unexpected error fetching redback_tech data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 392, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/redback_tech/coordinator.py", line 56, in _async_update_data
data = await self.client.get_redback_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/redbacktechpy/redbacktech_client.py", line 96, in get_redback_data
await self._create_device_info()
File "/usr/local/lib/python3.13/site-packages/redbacktechpy/redbacktech_client.py", line 676, in _create_device_info
await self._convert_responses_to_inverter_entities(response1, response2)
File "/usr/local/lib/python3.13/site-packages/redbacktechpy/redbacktech_client.py", line 1287, in _convert_responses_to_inverter_entities
data_dict = {'value': round(float(self.redback_mppt_data[data['Data']['Nodes'][0]['StaticData']['Id']]["mppt"+str(pvId)]["pv_size"]),3) ,'entity_name': entity_name_temp, 'device_id': id_temp, 'device_type': 'inverter'}
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions