mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 21:06:28 +00:00
Propose an exception handling criteria for Silver integration quality (#1344)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Teemu R. <tpr@iki.fi>
This commit is contained in:
parent
f6d2da20b3
commit
5f6fcb727e
@ -26,6 +26,7 @@ This integration is able to cope when things go wrong. It will not print any exc
|
||||
- Handles expiration of auth credentials. Refresh if possible or print correct error and fail setup. If based on a config entry, should trigger a new config entry flow to re-authorize. ([docs](config_entries_config_flow_handler.md#reauthentication))
|
||||
- Handles internet unavailable. Log a warning once when unavailable, log once when reconnected.
|
||||
- Handles device/service unavailable. Log a warning once when unavailable, log once when reconnected.
|
||||
- Operations like service calls and entity methods (e.g. *Set HVAC Mode*) have proper exception handling. Raise `ValueError` on invalid user input and raise `HomeAssistantError` for other failures such as a problem communicating with a device.
|
||||
- Set `available` property to `False` if appropriate ([docs](core/entity.md#generic-properties))
|
||||
- Entities have unique ID (if available) ([docs](entity_registry_index.md#unique-id-requirements))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user