189 files
This commit is contained in:
@@ -152,6 +152,8 @@ def _build_task_summary(
|
||||
"warning_days": task_data.get("warning_days", DEFAULT_WARNING_DAYS),
|
||||
"last_performed": task_data.get("last_performed"),
|
||||
"notes": task_data.get("notes"),
|
||||
# #170: reference number within the object ("8.3" = object 8, task 3).
|
||||
"ref_no": task_data.get("ref_no"),
|
||||
"documentation_url": task_data.get("documentation_url"),
|
||||
"custom_icon": task_data.get("custom_icon"),
|
||||
"nfc_tag_id": task_data.get("nfc_tag_id"),
|
||||
@@ -160,6 +162,8 @@ def _build_task_summary(
|
||||
"allow_skip": task_data.get("allow_skip") is not False,
|
||||
# v2.20 (#83): unit for `reading`-type tasks; values live in history.
|
||||
"reading_unit": task_data.get("reading_unit"),
|
||||
# #161 phase 2: reading slots [{id, name, unit}] ([] = single value).
|
||||
"readings": task_data.get("readings") or [],
|
||||
# Spare parts: consumption links ([{part_id, quantity}]) and, on an
|
||||
# auto-created "buy" reminder, the owning part marker ({part_id}).
|
||||
"consumes_parts": task_data.get("consumes_parts"),
|
||||
@@ -372,6 +376,8 @@ def _build_object_response(
|
||||
"documentation_url": obj_data.get("documentation_url"),
|
||||
# v1.4.10 (#46): free-form notes shown below the meta block.
|
||||
"notes": obj_data.get("notes"),
|
||||
# #170: the object's reference number ("8").
|
||||
"ref_no": obj_data.get("ref_no"),
|
||||
# v2.10.0 archive: object-level archived state. `archived` bool +
|
||||
# the raw timestamp so the panel can hide it by default and show
|
||||
# "archived on …" in the Archived section.
|
||||
@@ -557,6 +563,7 @@ def async_register_commands(hass: HomeAssistant) -> None:
|
||||
ws_battery_fleet_history,
|
||||
ws_battery_fleet_mark_replaced,
|
||||
ws_battery_fleet_overview,
|
||||
ws_battery_fleet_set_due_without_sensor,
|
||||
ws_battery_fleet_set_excluded,
|
||||
ws_battery_fleet_set_included,
|
||||
ws_battery_fleet_set_track_self_charging,
|
||||
@@ -580,6 +587,7 @@ def async_register_commands(hass: HomeAssistant) -> None:
|
||||
ws_documents_search,
|
||||
ws_documents_storage,
|
||||
ws_documents_update,
|
||||
ws_search,
|
||||
)
|
||||
from .groups import (
|
||||
ws_create_group,
|
||||
@@ -718,6 +726,7 @@ def async_register_commands(hass: HomeAssistant) -> None:
|
||||
websocket_api.async_register_command(hass, ws_battery_fleet_set_excluded)
|
||||
websocket_api.async_register_command(hass, ws_battery_fleet_set_included)
|
||||
websocket_api.async_register_command(hass, ws_battery_fleet_set_track_self_charging)
|
||||
websocket_api.async_register_command(hass, ws_battery_fleet_set_due_without_sensor)
|
||||
websocket_api.async_register_command(hass, ws_discover_integration_setups)
|
||||
websocket_api.async_register_command(hass, ws_adopt_integration_setups)
|
||||
websocket_api.async_register_command(hass, ws_list_saved_views)
|
||||
@@ -753,6 +762,7 @@ def async_register_commands(hass: HomeAssistant) -> None:
|
||||
websocket_api.async_register_command(hass, ws_documents_update)
|
||||
websocket_api.async_register_command(hass, ws_documents_delete)
|
||||
websocket_api.async_register_command(hass, ws_documents_search)
|
||||
websocket_api.async_register_command(hass, ws_search)
|
||||
|
||||
|
||||
def foreign_part_resolver(hass):
|
||||
|
||||
Reference in New Issue
Block a user