Refactor Freebox : add config flow + temperature sensor + signal dispatch (#30334)
* Add config flow to Freebox * Add manufacturer in device_tracker info * Add device_info to sensor + switch * Add device_info: connections * Add config_flow test + update .coveragerc * Typing * Add device_type icon * Remove one error log * Fix pylint * Add myself as CODEOWNER * Handle sync in one place * Separate the Freebox[Router/Device/Sensor] from __init__.py * Add link step to config flow * Make temperature sensors auto-discovered * Use device activity instead of reachablility for device_tracker * Store token file in .storage Depending on host if list of Freebox integration on the future without breaking change * Remove IP sensors + add Freebox router as a device with attrs : IPs, conection type, uptime, version & serial * Add sensor should_poll=False * Test typing * Handle devices with no name * None is the default for data * Fix comment * Use config_entry.unique_id * Add async_unload_entry with asyncio * Add and use bunch of data size and rate related constants (#31781) * Review * Remove useless "already_configured" error string * Review : merge 2 device & 2 sensor classes * Entities from platforms * Fix unload + add device after setup + clean loggers * async_add_entities True * Review * Use pathlib + refactor get_api * device_tracker set + tests with CoroutineMock() * Removing active & reachable from tracker attrs * Review * Fix pipeline * typing * typing * typing * Raise ConfigEntryNotReady when HttpRequestError at setup * Review * Multiple Freebox s * Review: store sensors in router * Freebox: a sensor story
This commit is contained in:
1 parent
180bcad477
commit
19be4a5d6d
17 files changed
+917
-165
No files matched your search
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"config": {
|
||||
"title": "Freebox",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Freebox",
|
||||
"data": {
|
||||
"host": "Host",
|
||||
"port": "Port"
|
||||
}
|
||||
},
|
||||
"link": {
|
||||
"title": "Link Freebox router",
|
||||
"description": "Click \"Submit\", then touch the right arrow on the router to register Freebox with Home Assistant.\n\n"
|
||||
}
|
||||
},
|
||||
"error":{
|
||||
"register_failed": "Failed to register, please try again",
|
||||
"connection_failed": "Failed to connect, please try again",
|
||||
"unknown": "Unknown error: please retry later"
|
||||
},
|
||||
"abort":{
|
||||
"already_configured": "Host already configured"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user