mirror of
https://github.com/home-assistant/core.git
synced 2026-02-07 23:56:36 +01:00
* bring back power switch * fix pylint issues * add SWITCH to platform list * improve run_on and turn_off functions * ruff formatting * replace _state with _attr_is_on * Update homeassistant/components/apsystems/switch.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * remove unused dependencies * Update homeassistant/components/apsystems/switch.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * use async functions from api * convert Api IntEnum Status Information to bool * add translation key * implement async_update again * replace finally with else * better handling of bool value * Update homeassistant/components/apsystems/switch.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/apsystems/switch.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * rename power switch to inverter switch * add test_number and test_switch module * remove test_number * Add mock entry for get_device_power_status * Add mock entry for get_device_power_status * Update test snapshots --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
63 lines
1.5 KiB
JSON
63 lines
1.5 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"data": {
|
|
"ip_address": "[%key:common::config_flow::data::ip%]",
|
|
"port": "[%key:common::config_flow::data::port%]"
|
|
},
|
|
"data_description": {
|
|
"port": "The integration will default to 8050, if not set, which should be suitable for most installs"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"total_power": {
|
|
"name": "Total power"
|
|
},
|
|
"total_power_p1": {
|
|
"name": "Power of P1"
|
|
},
|
|
"total_power_p2": {
|
|
"name": "Power of P2"
|
|
},
|
|
"lifetime_production": {
|
|
"name": "Total lifetime production"
|
|
},
|
|
"lifetime_production_p1": {
|
|
"name": "Lifetime production of P1"
|
|
},
|
|
"lifetime_production_p2": {
|
|
"name": "Lifetime production of P2"
|
|
},
|
|
"today_production": {
|
|
"name": "Production of today"
|
|
},
|
|
"today_production_p1": {
|
|
"name": "Production of today from P1"
|
|
},
|
|
"today_production_p2": {
|
|
"name": "Production of today from P2"
|
|
}
|
|
},
|
|
"number": {
|
|
"max_output": {
|
|
"name": "Max output"
|
|
}
|
|
},
|
|
"switch": {
|
|
"inverter_status": {
|
|
"name": "Inverter status"
|
|
}
|
|
}
|
|
}
|
|
}
|