Skip to content

Commit

Permalink
Improve scrape strings (#116519)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored and frenck committed May 1, 2024
1 parent 780a6b3 commit 15aa894
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions homeassistant/components/scrape/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"encoding": "Character encoding"
},
"data_description": {
"resource": "The URL to the website that contains the value",
"authentication": "Type of the HTTP authentication. Either basic or digest",
"verify_ssl": "Enables/disables verification of SSL/TLS certificate, for example if it is self-signed",
"headers": "Headers to use for the web request",
"timeout": "Timeout for connection to website",
"encoding": "Character encoding to use. Defaults to UTF-8",
"payload": "Payload to use when method is POST"
"resource": "The URL to the website that contains the value.",
"authentication": "Type of the HTTP authentication. Either basic or digest.",
"verify_ssl": "Enables/disables verification of SSL/TLS certificate, for example if it is self-signed.",
"headers": "Headers to use for the web request.",
"timeout": "Timeout for connection to website.",
"encoding": "Character encoding to use. Defaults to UTF-8.",
"payload": "Payload to use when method is POST."
}
},
"sensor": {
Expand All @@ -36,19 +36,21 @@
"attribute": "Attribute",
"index": "Index",
"select": "Select",
"value_template": "Value Template",
"device_class": "Device Class",
"state_class": "State Class",
"unit_of_measurement": "Unit of Measurement"
"value_template": "Value template",
"availability": "Availability template",
"device_class": "Device class",
"state_class": "State class",
"unit_of_measurement": "Unit of measurement"
},
"data_description": {
"select": "Defines what tag to search for. Check Beautifulsoup CSS selectors for details",
"attribute": "Get value of an attribute on the selected tag",
"index": "Defines which of the elements returned by the CSS selector to use",
"value_template": "Defines a template to get the state of the sensor",
"device_class": "The type/class of the sensor to set the icon in the frontend",
"state_class": "The state_class of the sensor",
"unit_of_measurement": "Choose temperature measurement or create your own"
"select": "Defines what tag to search for. Check Beautifulsoup CSS selectors for details.",
"attribute": "Get value of an attribute on the selected tag.",
"index": "Defines which of the elements returned by the CSS selector to use.",
"value_template": "Defines a template to get the state of the sensor.",
"availability": "Defines a template to get the availability of the sensor.",
"device_class": "The type/class of the sensor to set the icon in the frontend.",
"state_class": "The state_class of the sensor.",
"unit_of_measurement": "Choose unit of measurement or create your own."
}
}
}
Expand All @@ -70,6 +72,7 @@
"index": "[%key:component::scrape::config::step::sensor::data::index%]",
"select": "[%key:component::scrape::config::step::sensor::data::select%]",
"value_template": "[%key:component::scrape::config::step::sensor::data::value_template%]",
"availability": "[%key:component::scrape::config::step::sensor::data::availability%]",
"device_class": "[%key:component::scrape::config::step::sensor::data::device_class%]",
"state_class": "[%key:component::scrape::config::step::sensor::data::state_class%]",
"unit_of_measurement": "[%key:component::scrape::config::step::sensor::data::unit_of_measurement%]"
Expand All @@ -79,6 +82,7 @@
"attribute": "[%key:component::scrape::config::step::sensor::data_description::attribute%]",
"index": "[%key:component::scrape::config::step::sensor::data_description::index%]",
"value_template": "[%key:component::scrape::config::step::sensor::data_description::value_template%]",
"availability": "[%key:component::scrape::config::step::sensor::data_description::availability%]",
"device_class": "[%key:component::scrape::config::step::sensor::data_description::device_class%]",
"state_class": "[%key:component::scrape::config::step::sensor::data_description::state_class%]",
"unit_of_measurement": "[%key:component::scrape::config::step::sensor::data_description::unit_of_measurement%]"
Expand All @@ -91,6 +95,7 @@
"index": "[%key:component::scrape::config::step::sensor::data::index%]",
"select": "[%key:component::scrape::config::step::sensor::data::select%]",
"value_template": "[%key:component::scrape::config::step::sensor::data::value_template%]",
"availability": "[%key:component::scrape::config::step::sensor::data::availability%]",
"device_class": "[%key:component::scrape::config::step::sensor::data::device_class%]",
"state_class": "[%key:component::scrape::config::step::sensor::data::state_class%]",
"unit_of_measurement": "[%key:component::scrape::config::step::sensor::data::unit_of_measurement%]"
Expand All @@ -100,6 +105,7 @@
"attribute": "[%key:component::scrape::config::step::sensor::data_description::attribute%]",
"index": "[%key:component::scrape::config::step::sensor::data_description::index%]",
"value_template": "[%key:component::scrape::config::step::sensor::data_description::value_template%]",
"availability": "[%key:component::scrape::config::step::sensor::data_description::availability%]",
"device_class": "[%key:component::scrape::config::step::sensor::data_description::device_class%]",
"state_class": "[%key:component::scrape::config::step::sensor::data_description::state_class%]",
"unit_of_measurement": "[%key:component::scrape::config::step::sensor::data_description::unit_of_measurement%]"
Expand Down

0 comments on commit 15aa894

Please sign in to comment.