JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
1.17k stars 89 forks source link

reload_config_entry ends with unknown error #555

Closed scetu closed 4 months ago

scetu commented 7 months ago

Description

After calling homeassistant.reload_config_entry it fails (I must say that config_entry comes from custom component https://github.com/JurajNyiri/HomeAssistant-Tapo-Control)

service: homeassistant.reload_config_entry
data: {}
target:
  device_id:
    - 88e356383b63391290aa1b3539239906

fails with

Translation Error: The intl string context variable "reason" was not provided to the string "Stopped because of unknown reason {reason} at {time} (runtime: {executiontime} seconds)"

image

Referenced in Core as issue, but repoted integration Bosch Smarthome has fixed it within integration itself - https://github.com/home-assistant/core/issues/115060

Reproduction Steps

service: homeassistant.reload_config_entry
data: {}
target:
  device_id:
    - 88e356383b63391290aa1b3539239906

Expected behavior

Entitty/Device is reloaded without error.

If applicable, add error logs.

No response

Device Firmware

1.3.11

Integration Version

5.4.17

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

HAOS

Search for similar issues

Yes

Additional information

No response

JurajNyiri commented 4 months ago

I just tried this with the latest version - 5.4.25 on HA 2024.07.0 and it works as expected.

service: homeassistant.reload_config_entry
data: {}
target:
  device_id: 806300c7c7b2d7e03fa04045cbd6a67c

@scetu if you are still encountering error please post which language you are using in HA, version of HA and integration version and we can reopen.