Add WLED integration (#28542)
* Add WLED integration * Use f-string for uniq id in sensor platform * Typing improvements * Removes sensor & light platform * Remove PARALLEL_UPDATES from integration level * Correct type in code comment 'themselves' * Use async_track_time_interval in async context * Remove stale code * Remove decorator from Flow handler * Remove unused __init__ from config flow * Move show form methods to sync * Only wrap lines that can raise in try except block * Remove domain and platform from uniq id * Wrap light state in bool object in is_on method * Use async_schedule_update_ha_state in async context * Return empty dict in device state attributes instead of None * Remove unneeded setdefault call in setup entry * Cancel update timer on entry unload * Restructure config flow code * Adjust tests for new uniq id * Correct typo AdGuard Home -> WLED in config flow file comment * Convert internal package imports to be relative * Reformat JSON files with Prettier * Improve tests based on review comments * Add test for zeroconf when no data is provided * Cleanup and extended tests
This commit is contained in:
1 parent
3d2ff841d3
commit
78b83c653a
18 files changed
+1518
No files matched your search
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"config": {
|
||||
"title": "WLED",
|
||||
"flow_title": "WLED: {name}",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Link your WLED",
|
||||
"description": "Set up your WLED to integrate with Home Assistant.",
|
||||
"data": {
|
||||
"host": "Host or IP address"
|
||||
}
|
||||
},
|
||||
"zeroconf_confirm": {
|
||||
"description": "Do you want to add the WLED named `{name}` to Home Assistant?",
|
||||
"title": "Discovered WLED device"
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"connection_error": "Failed to connect to WLED device."
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "This WLED device is already configured.",
|
||||
"connection_error": "Failed to connect to WLED device."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user