hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
5.49k stars 1.3k forks source link

Unable to update integration via HACS - #3214

Closed Trebacz closed 1 year ago

Trebacz commented 1 year ago

System Health details

System Information

version core-2023.8.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.21-v8
arch aarch64
timezone America/Phoenix
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | failed to load: unreachable GitHub Web | ok GitHub API Calls Remaining | 4468 Installed Version | 1.32.1 Stage | running Available Repositories | 1274 Downloaded Repositories | 33
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 10.4 -- | -- update_channel | stable supervisor_version | supervisor-2023.07.1 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 439.4 GB disk_used | 12.9 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Samba share (10.0.2), Terminal & SSH (9.7.1), InfluxDB (4.7.0), Home Assistant Google Drive Backup (0.111.1), Spotify Connect (0.12.4), ESPHome (2023.7.1), rtl_433 MQTT Auto Discovery (0.6.0), Nextcloud Backup (0.17.7), Matter Server (4.9.0), Double Take (1.13.10)
Dashboards dashboards | 1 -- | -- resources | 20 views | 12 mode | storage
Recorder oldest_recorder_run | July 28, 2023 at 5:15 PM -- | -- current_recorder_run | August 5, 2023 at 2:40 PM estimated_db_size | 2273.19 MiB database_engine | mysql database_version | 10.6.12
Spotify api_endpoint_reachable | ok -- | --

Checklist

Describe the issue

Trying to update a roborock integration that was installed and working wonderfly for the past 7 months. I had been unable to update the past 2 updates through the GUI. After getting the notice there were version updates, pressing update would just kick of a spinner and the update would never finish. This does not seem to have anything to do with this particular integration, but perhaps HACS itself. I see this error(s):

Download failed - Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'raw.githubusercontent.com'. (_ssl.c:1002)")]

File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 982, in _wrap_create_connection raise ClientConnectorCertificateError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'raw.githubusercontent.com'. (_ssl.c:1002)")]

Reproduction steps

  1. Go to System > Repairs > System Information
  2. Under "Home Assistant Community Store" Github Content is listed as unreachable

Debug logs

2023-08-05 15:31:37.841 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration nws_alerts which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.843 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration roborock which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.847 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration weatheralerts which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.850 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.853 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration mail_and_packages which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.856 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration spotcast which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.858 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration zwift which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.861 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration weatherbit which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.863 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration recteq which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.865 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration purpleair which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.867 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration wundergroundpws which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.869 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.871 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.874 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration samsungtv_tizen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.877 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration frigate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.879 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.882 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration pfsense which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:31:37.884 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration emporia_vue which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-05 15:32:04.360 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/purpleair/coordinator.py", line 191, in _async_update_devices
    device = registry.async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 511, in async_get_or_create
    device_info_type = _validate_device_info(config_entry, device_info)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 165, in _validate_device_info
    raise DeviceInfoError(
homeassistant.helpers.device_registry.DeviceInfoError: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:11.523 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Patio Chromecast' for androidtv_remote integration not ready yet: Couldn't connect to 192.168.0.42:6466; Retrying in background
2023-08-05 15:32:15.227 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.234 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.237 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.240 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.243 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.246 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.249 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.253 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'PurpleAir', 'default_model': 'unknown', 'default_name': 'E Sycamore Drive', 'identifiers': {('purpleair', '125025')}} for 'purpleair' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-08-05 15:32:15.955 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Roku - Garage' for roku integration not ready yet: Invalid response from API: Error occurred while communicating with device; Retrying in background
2023-08-05 15:32:16.145 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Camera 1 - Four Peaks for reolink
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/reolink/__init__.py", line 57, in async_setup_entry
    await host.async_init()
  File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 157, in async_init
    await self.subscribe()
  File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 338, in subscribe
    await self._api.subscribe(self._webhook_url)
  File "/usr/local/lib/python3.11/site-packages/reolink_aio/api.py", line 3932, in subscribe
    response = await self.subscription_send(headers, xml)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/reolink_aio/api.py", line 3883, in subscription_send
    response = await self._aiohttp_session.post(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 32] Broken pipe
2023-08-05 15:32:16.198 WARNING (MainThread) [homeassistant.components.konnected] Konnected entity not yet setup, returning default
2023-08-05 15:32:16.945 WARNING (MainThread) [homeassistant.components.konnected] Konnected entity not yet setup, returning default
2023-08-05 15:32:18.742 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.kazfount19_solar_radiation (<class 'custom_components.wundergroundpws.sensor.WundergroundPWSSensor'>) is using native unit of measurement '' which is not a valid unit for the device class ('irradiance') it is using; expected one of ['BTU/(h⋅ft²)', 'W/m²']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-08-05 15:32:18.789 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform wundergroundpws
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 591, in state
    numerical_value = int(value)
                      ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '—'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 595, in state
    raise ValueError(
ValueError: Sensor sensor.kazfount19_forecast_summary_0d has device class 'None', state class 'None' unit '' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '—' (<class 'str'>)
2023-08-05 15:32:18.827 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up wundergroundpws platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 591, in state
    numerical_value = int(value)
                      ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '—'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 595, in state
    raise ValueError(
ValueError: Sensor sensor.kazfount19_forecast_summary_0d has device class 'None', state class 'None' unit '' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '—' (<class 'str'>)
2023-08-05 15:32:20.152 WARNING (MainThread) [py.warnings] /config/custom_components/samsungtv_tizen/media_player.py:703: RuntimeWarning: coroutine 'SamsungTVDevice._gen_installed_app_list' was never awaited
  self._gen_installed_app_list()

2023-08-05 15:32:21.576 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform mobile_app
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 591, in state
    numerical_value = int(value)
                      ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'discharging'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 595, in state
    raise ValueError(
ValueError: Sensor sensor.davids_phone_battery_state has device class 'battery', state class 'None' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'discharging' (<class 'str'>)
2023-08-05 15:32:21.636 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up mobile_app platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 591, in state
    numerical_value = int(value)
                      ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'discharging'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 595, in state
    raise ValueError(
ValueError: Sensor sensor.davids_phone_battery_state has device class 'battery', state class 'None' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'discharging' (<class 'str'>)
2023-08-05 15:32:21.676 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform mobile_app
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 591, in state
    numerical_value = int(value)
                      ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'discharging'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 595, in state
    raise ValueError(
ValueError: Sensor sensor.sm_t290_battery_state has device class 'battery', state class 'None' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'discharging' (<class 'str'>)
2023-08-05 15:32:21.733 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up mobile_app platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 591, in state
    numerical_value = int(value)
                      ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'discharging'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 595, in state
    raise ValueError(
ValueError: Sensor sensor.sm_t290_battery_state has device class 'battery', state class 'None' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'discharging' (<class 'str'>)
2023-08-05 15:32:22.258 WARNING (MainThread) [homeassistant.components.bluetooth_le_tracker.device_tracker] No Bluetooth LE devices to track!
2023-08-05 15:32:22.264 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy bluetooth_le_tracker
2023-08-05 15:32:24.360 ERROR (Thread-9) [pychromecast.socket_client] [Guest bedroom speaker(ee7dfd43-b184-336b-2523-e249879a36dc.local.):8009] Failed to connect to service ServiceInfo(type='mdns', data='Google-Home-ee7dfd43b184336b2523e249879a36dc._googlecast._tcp.local.'), retrying in 5.0s

2023-08-05 15:33:29.665 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.11/site-packages/roborock/api.py:312: RuntimeWarning: coroutine 'RoborockClient._async_response' was never awaited
  await self.async_connect()

2023-08-05 15:34:27.258 ERROR (MainThread) [custom_components.hacs] Download failed - Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)')]
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1112, in create_connection
    transport, protocol = await self._create_connection_transport(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1145, in _create_connection_transport
    await waiter
  File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 575, in _on_handshake_complete
    raise handshake_exc
  File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 557, in _do_handshake
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.11/ssl.py", line 979, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/hacs/base.py", line 705, in async_download_file
    request = await self.session.get(
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 982, in _wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)')]
2023-08-05 15:34:27.293 ERROR (MainThread) [custom_components.hacs] Download failed - Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)')]
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1112, in create_connection
    transport, protocol = await self._create_connection_transport(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1145, in _create_connection_transport
    await waiter
  File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 575, in _on_handshake_complete
    raise handshake_exc
  File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 557, in _do_handshake
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.11/ssl.py", line 979, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/hacs/base.py", line 705, in async_download_file
    request = await self.session.get(
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 982, in _wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)')]
2023-08-05 15:34:30.637 ERROR (MainThread) [custom_components.hacs] Download failed - Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)')]
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1112, in create_connection
    transport, protocol = await self._create_connection_transport(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1145, in _create_connection_transport
    await waiter
  File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 575, in _on_handshake_complete
    raise handshake_exc
  File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 557, in _do_handshake
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.11/ssl.py", line 979, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/hacs/base.py", line 705, in async_download_file
    request = await self.session.get(
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 982, in _wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host raw.githubusercontent.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1002)')]
2023-08-05 15:34:31.671 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [__init__.py] was not downloaded.
2023-08-05 15:34:31.679 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [image_handler.py] was not downloaded.
2023-08-05 15:34:31.681 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [camera.py] was not downloaded.
2023-08-05 15:34:31.684 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [calendar.py] was not downloaded.
2023-08-05 15:34:31.686 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [button.py] was not downloaded.
2023-08-05 15:34:31.690 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [binary_sensor.py] was not downloaded.
2023-08-05 15:34:31.691 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [config_flow.py] was not downloaded.
2023-08-05 15:34:31.695 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [types.py] was not downloaded.
2023-08-05 15:34:31.699 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [map_data_parser.py] was not downloaded.
2023-08-05 15:34:31.702 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [map_data.py] was not downloaded.
2023-08-05 15:34:31.705 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [const.py] was not downloaded.
2023-08-05 15:34:31.708 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [coordinator.py] was not downloaded.
2023-08-05 15:34:31.710 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [device.py] was not downloaded.
2023-08-05 15:34:31.712 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [domain.py] was not downloaded.
2023-08-05 15:34:31.713 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [number.py] was not downloaded.
2023-08-05 15:34:31.714 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [manifest.json] was not downloaded.
2023-08-05 15:34:31.715 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [recorder.py] was not downloaded.
2023-08-05 15:34:31.717 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [roborock_typing.py] was not downloaded.
2023-08-05 15:34:31.720 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [sensor.py] was not downloaded.
2023-08-05 15:34:31.722 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [select.py] was not downloaded.
2023-08-05 15:34:31.726 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [services.yaml] was not downloaded.
2023-08-05 15:34:31.729 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [store.py] was not downloaded.
2023-08-05 15:34:31.732 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [switch.py] was not downloaded.
2023-08-05 15:34:31.734 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [time.py] was not downloaded.
2023-08-05 15:34:31.735 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [da.json] was not downloaded.
2023-08-05 15:34:31.736 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [de.json] was not downloaded.
2023-08-05 15:34:31.737 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [en.json] was not downloaded.
2023-08-05 15:34:31.744 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [fr.json] was not downloaded.
2023-08-05 15:34:31.746 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [it.json] was not downloaded.
2023-08-05 15:34:31.748 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [nl.json] was not downloaded.
2023-08-05 15:34:31.750 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [no.json] was not downloaded.
2023-08-05 15:34:31.752 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [pl.json] was not downloaded.
2023-08-05 15:34:31.755 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [pt-BR.json] was not downloaded.
2023-08-05 15:34:31.758 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [pt.json] was not downloaded.
2023-08-05 15:34:31.760 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [ru.json] was not downloaded.
2023-08-05 15:34:31.762 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [sv.json] was not downloaded.
2023-08-05 15:34:31.765 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [utils.py] was not downloaded.
2023-08-05 15:34:31.766 ERROR (MainThread) [custom_components.hacs] <Integration humbertogontijo/homeassistant-roborock> [vacuum.py] was not downloaded.
2023-08-05 15:34:31.769 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548151654848] Error handling message: Unknown error (unknown_error) David Trebacz from 192.168.0.209 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/hacs/websocket/repository.py", line 216, in hacs_repository_download
    await repository.async_install()
  File "/config/custom_components/hacs/repositories/base.py", line 899, in async_install
    await self.async_install_repository()
  File "/config/custom_components/hacs/repositories/base.py", line 995, in async_install_repository
    raise HacsException("Could not download, see log for details")
custom_components.hacs.exceptions.HacsException: Could not download, see log for details

Diagnostics dump

No response

hacs-bot[bot] commented 1 year ago

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a :+1: reaction to the issue description. Thanks! :+1:

ludeeus commented 1 year ago

Someone or something is messing with DNS or https requests (certificates) on your network. This is not something HACS can control.

Trebacz commented 1 year ago

@ludeeus Thanks ended up being an overly protective firewall here... blocking access to certain domains...