mirror of
https://github.com/home-assistant/core.git
synced 2025-08-31 10:21:30 +02:00
Apply suggestions from code review
This commit is contained in:
@@ -115,7 +115,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
async_log_entry(hass, name, message, domain, entity_id, service.context)
|
async_log_entry(hass, name, message, domain, entity_id, service.context)
|
||||||
|
|
||||||
frontend.async_register_built_in_panel(
|
frontend.async_register_built_in_panel(
|
||||||
hass, "logbook", "Activity", "hass:format-list-bulleted-type"
|
hass, "logbook", "logbook", "hass:format-list-bulleted-type"
|
||||||
)
|
)
|
||||||
|
|
||||||
recorder_conf = config.get(RECORDER_DOMAIN, {})
|
recorder_conf = config.get(RECORDER_DOMAIN, {})
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
"services": {
|
"services": {
|
||||||
"log": {
|
"log": {
|
||||||
"name": "Log",
|
"name": "Log",
|
||||||
"description": "Creates a custom entry in the activity log.",
|
"description": "Track a custom activity.",
|
||||||
"fields": {
|
"fields": {
|
||||||
"name": {
|
"name": {
|
||||||
"name": "[%key:common::config_flow::data::name%]",
|
"name": "[%key:common::config_flow::data::name%]",
|
||||||
@@ -11,15 +11,15 @@
|
|||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
"name": "Message",
|
"name": "Message",
|
||||||
"description": "Message of the activity log entry."
|
"description": "Message of the activity."
|
||||||
},
|
},
|
||||||
"entity_id": {
|
"entity_id": {
|
||||||
"name": "Entity ID",
|
"name": "Entity ID",
|
||||||
"description": "Entity to reference in the activity log entry."
|
"description": "Entity to reference in the activity."
|
||||||
},
|
},
|
||||||
"domain": {
|
"domain": {
|
||||||
"name": "Domain",
|
"name": "Domain",
|
||||||
"description": "Determines which icon is used in the activity log entry. The icon illustrates the integration domain related to this activity log entry."
|
"description": "Determines which icon is used in the activity. The icon illustrates the integration domain related to this activity."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user