mirror of
https://github.com/home-assistant/core.git
synced 2026-04-29 05:03:59 +01:00
* add altruist integration and tests * requested fixes + remove some deprecated sensors * add tests for unknown sensor and device attribute in config_flow * use CONF_ in data_schema * suggested fixes * remove test_setup_entry_success * create ZeroconfServiceInfo in tests * use CONF_IP_ADDRESS in tests * add unique id assert * add integration to strict-typing, set unavailable if no sensor key in data, change device name * use add_suggested_values_to_schema, mmHg for pressure * update snapshots and config entry name in tests * remove changes in devcontainer config * fixture for create client error, typing in tests, remove "Altruist" from device name * change native_value_fn return type * change sensor.py docstring * remove device id from entry data, fix docstrings * remove checks for client and device attributes * use less variables in tests * change creating AltruistSensor, remove device from arguments * Update homeassistant/components/altruist/sensor.py * Update homeassistant/components/altruist/quality_scale.yaml * Update homeassistant/components/altruist/quality_scale.yaml * Update quality_scale.yaml * hassfest run * suggested fixes * set suggested_unit_of_measurement for pressure * use mock_config_entry, update snapshots * abort if cant create client on zeroconf step * move sensor names in translatin placeholders --------- Co-authored-by: Josef Zweck <josef@zweck.dev>
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
|
"config": {
|
|
"flow_title": "{name}",
|
|
"step": {
|
|
"discovery_confirm": {
|
|
"description": "Do you want to start setup {model}?"
|
|
},
|
|
"user": {
|
|
"data": {
|
|
"host": "[%key:common::config_flow::data::host%]"
|
|
},
|
|
"data_description": {
|
|
"host": "Altruist IP address or hostname in the local network"
|
|
},
|
|
"description": "Fill in Altruist IP address or hostname in your local network"
|
|
}
|
|
},
|
|
"abort": {
|
|
"no_devices_found": "[%key:common::config_flow::abort::no_devices_found%]",
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
|
},
|
|
"error": {
|
|
"no_device_found": "[%key:common::config_flow::error::cannot_connect%]"
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"humidity": {
|
|
"name": "{sensor_name} humidity"
|
|
},
|
|
"pressure": {
|
|
"name": "{sensor_name} pressure"
|
|
},
|
|
"temperature": {
|
|
"name": "{sensor_name} temperature"
|
|
},
|
|
"noise_max": {
|
|
"name": "Maximum noise"
|
|
},
|
|
"noise_avg": {
|
|
"name": "Average noise"
|
|
},
|
|
"co2": {
|
|
"name": "{sensor_name} CO2"
|
|
},
|
|
"radiation": {
|
|
"name": "Radiation level"
|
|
}
|
|
}
|
|
}
|
|
}
|