Commit graph

42 commits

Author SHA1 Message Date
Erik Montnemery
4a03f6482a
Set thread dataset's preferred router on add if not set (#98639) 2023-08-21 22:46:15 +02:00
Erik Montnemery
e6ea70fd00
Adjust thread router discovery typing (#98439)
* Adjust thread router discovery typing

* Adjust debug logs
2023-08-15 09:40:05 +02:00
Erik Montnemery
6294014fcd
Bump python-otbr-api to 2.5.0 (#98403) 2023-08-14 20:09:50 +02:00
Erik Montnemery
d4753ebd3b
Include border agent ID in thread router discovery (#98378) 2023-08-14 16:46:55 +02:00
Erik Montnemery
e0fd83daab
Store preferred border agent ID for each thread dataset (#98384) 2023-08-14 15:47:18 +02:00
Erik Montnemery
4dd102f818
Bump python-otbr-api to 2.4.0 (#98376) 2023-08-14 11:33:07 +02:00
Erik Montnemery
e0ee713bb2
Store preferred border agent ID in thread dataset store (#98375) 2023-08-14 11:32:55 +02:00
J. Nick Koston
d1f8309423
Bump zeroconf to 0.74.0 (#97745)
* Bump zeroconf to 0.74.0

changelog: https://github.com/python-zeroconf/python-zeroconf/compare/0.72.3...0.74.0

- more cython build fixes
- performance improvements (mostly for pyatv)

* handle typing

* handle typing

* remove if TYPE_CHECKING, this doesnt get called that often

* remove if TYPE_CHECKING, this doesnt get called that often
2023-08-03 22:48:53 -04:00
Erik Montnemery
0dc5875cbd
Bump python-otbr-api to 2.3.0 (#97185) 2023-07-25 09:22:57 +02:00
Erik Montnemery
a568885ad2
Add backport of cached_property from CPython 3.12 (#95292) 2023-06-26 16:23:07 -05:00
Erik Montnemery
1fa2fb4639
Fix OTBR reset (#94157) 2023-06-07 18:42:40 +02:00
Erik Montnemery
b5f5e1c8c3
Add empty config schema to integrations t-z (#93853) 2023-05-31 10:13:26 +02:00
Erik Montnemery
11299c4537
Deduplicate Thread datasets based on EXTPANID (#93795)
* Deduplicate Thread datasets based on EXTPANID

* Apply suggestions from code review
2023-05-30 16:16:56 +02:00
Erik Montnemery
16d8c8d4d5
Bump python-otbr-api to 2.1.0 (#93790)
* Bump python-otbr-api to 2.1.0

* Fix tests
2023-05-30 12:47:46 +02:00
Erik Montnemery
901624ad6f
Adapt otbr to upstream openthread REST API changes (#93544)
* Adapt otbr to upstream openthread REST API changes

* Bump python-otbr-api to 2.0.0
2023-05-30 10:11:21 +02:00
Paulus Schoutsen
6342992791
Detect eero brand for Thread (#91699) 2023-04-19 22:18:09 +02:00
Erik Montnemery
b23cedeae9
Save Thread dataset store when changing preferred dataset (#91411) 2023-04-14 11:48:03 +02:00
Erik Montnemery
976efb437b
Include channel in response to WS thread/list_datasets (#90493) 2023-03-30 09:16:27 -04:00
Erik Montnemery
85e0177195
Add WS command for connecting OTBR to a known Thread network (#89692)
* Add WS command for connecting OTBR to a known Thread network

* Add test
2023-03-14 15:28:06 +01:00
Bram Kragten
a213ef2475
Add websocket command to set preferred thread dataset (#89700) 2023-03-14 15:27:31 +01:00
Erik Montnemery
8a0522ca2a
Include extended address in thread discovery data (#89640) 2023-03-13 15:59:22 +01:00
Erik Montnemery
0f2abe7f25
Bump python-otbr-api to 1.0.9 (#89637) 2023-03-13 15:52:36 +01:00
Erik Montnemery
fde205c158
Add unconfigured flag to thread discovery data (#89230)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-09 22:32:32 -05:00
Erik Montnemery
09915f8047
Add WS API for getting an OTBR's extended address (#89384)
* Add WS API for getting an OTBR's extended address

* Bump python-otbr-api to 1.0.8

* Really add require_admin decorator to otbr WS API
2023-03-08 15:52:53 -05:00
Marc Mueller
bfb89fd8f2
Update pylint to 2.17.0 (#89377)
* Update pylint to 2.17.0

* Remove unused pylint disable comments
2023-03-08 10:54:19 -05:00
J. Nick Koston
bde40cde48
Fix thread diagnostics loading blocking the event loop (#89307)
* Fix thread diagnostics loading blocking the event loop

* patch target
2023-03-07 20:21:26 -05:00
Stefan Agner
b607a09e4b
Add Home Assistant with space as brand (#88976) 2023-03-01 17:10:19 +01:00
Erik Montnemery
c38df1102a
Fix typo in thread (#88916) 2023-02-28 11:34:46 -05:00
Erik Montnemery
f41bec6ba9
Create repairs issue if Thread network is insecure (#88888)
* Bump python-otbr-api to 1.0.5

* Create repairs issue if Thread network is insecure

* Address review comments
2023-02-28 13:50:56 +01:00
Erik Montnemery
d397217b5b
Add confirm step to thread zeroconf flow (#88869)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-28 10:23:36 +01:00
Erik Montnemery
db1dd16ab0
Add thread user flow (#88842) 2023-02-27 15:30:04 +01:00
Erik Montnemery
473db48943
Bump python-otbr-api to 1.0.4 (#88613)
* Bump python-otbr-api to 1.0.4

* Adjust tests
2023-02-22 15:31:02 -05:00
Jc2k
f7bfdfefde
Diagnostics report for Thread networks (#88541)
* Initial diagnostics

* Include MLP of local OTBR

* Add dep on pyroute2

* Move pyroute2 onto executor

* More comments

* Read thread data direct from zeroconf cache

* Get neighbour cache for known BR's

* isort

* mypy

* Add diagnostic test

* rel import

* Fix pylint

* Restore coverage in discovery.py
2023-02-22 11:24:21 -05:00
Jc2k
ce1ef1d720
Activate thread integration if thread border routers are present (#88551) 2023-02-21 16:22:00 +00:00
Erik Montnemery
80e2f96097
Add WS command thread/delete_dataset (#88077)
* Add WS command thread/delete_dataset

* Return not_allowed when trying to delete the preferred dataset
2023-02-15 12:55:10 -05:00
Erik Montnemery
8613d60c5e
Add WS command for discovering Thread routers (#88021)
* Add WS command for discovering Thread routers

* Fix type annotations

* Mock zeroconf in tests

* Key discovery by external MAC address

* Add tests

* Include hostname in data, allow missing fields

* Fix typo

* Include server instead of hostname
2023-02-15 15:15:29 +01:00
Erik Montnemery
2246255e90
Create or import thread active dataset when setting up OTBR (#87186)
* Create a thread active dataset when discovering OTBR

* Align with lib changes

* Use thread preferred dataset if set

* Create a dataset also from the user flow
2023-02-08 19:32:19 +01:00
Erik Montnemery
0d713809e7
Store preferred dataset separately in thread dataset store (#87378) 2023-02-04 06:33:17 -05:00
Erik Montnemery
6f097eecc3
Add WS commands thread/list_datasets, thread/get_dataset_tlv (#87333) 2023-02-03 15:22:31 -05:00
Erik Montnemery
4f94c7cab6
Add thread WS API (#87307) 2023-02-03 11:47:09 -05:00
Erik Montnemery
527de22adf
Add thread dataset store (#87187)
* Add thread dataset store

* Address review comments

* Bump python-otbr-api to 1.0.3

* Remove stuff which we don't need yet
2023-02-03 09:47:41 -05:00
Erik Montnemery
9ef86b7b66
Add Thread integration (#86283)
* Add Thread integration

* Address review comments

* Address review comments
2023-01-23 10:27:24 -05:00