* Integration for Energenie Power-Strips (EGPS) * cleanups reocommended by reviewer * Adds missing exception handling when trying to send a command to an unreachable device. * fix: incorrect handling of already opened devices in pyegps api. bump to pyegps=0.2.4 * Add blank line after file docstring, and other cosmetics * change asyncio.to_thread to async_add_executer_job * raises HomeAssistantError EgpsException in switch services. * switch test parameterized by entity name * reoved unused device registry * add translation_key and update_before_add * bump pyegps dependency to version to 0.2.5 * combined get_device patches and put into conftest.py * changed switch entity to use _attr_is_on and cleanups * further cleanup * Apply suggestions from code review * refactor: rename egps to energenie_power_sockets * updated test snapshot --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
27 lines
735 B
JSON
27 lines
735 B
JSON
{
|
|
"title": "Energenie Power Sockets Integration.",
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Searching for Energenie-Power-Sockets Devices.",
|
|
"description": "Choose a discovered device.",
|
|
"data": {
|
|
"device": "[%key:common::config_flow::data::device%]"
|
|
}
|
|
}
|
|
},
|
|
"abort": {
|
|
"usb_error": "Couldn't access USB devices!",
|
|
"no_device": "Unable to discover any (new) supported device.",
|
|
"device_not_found": "No device was found for the given id.",
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
|
}
|
|
},
|
|
"entity": {
|
|
"switch": {
|
|
"socket": {
|
|
"name": "Socket {socket_id}"
|
|
}
|
|
}
|
|
}
|
|
}
|