Stefan Agner
0c2d0cf5c1
Fix D-Bus enum type conversions for NetworkManager ( #6325 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-11-22 21:52:14 +01:00
Mike Degatano
3ee7c082ec
Add mypy to ci and precommit ( #5969 )
...
* Add mypy to ci and precommit
* Run precommit mypy in venv
* Fix issues raised in latest version of mypy
2025-06-24 11:48:03 +02:00
Stefan Agner
c0e35376f3
Improve connection settings tests ( #5278 )
...
* Improve connection settings fixture
Make the connection settings fixture behave more closely to the actual
NetworkManager. The behavior has been tested with NetworkManager 1.42.4
(Debian 12) and 1.44.2 (HAOS 13.1). This likely behaves similar in older
versions too.
* Introduce separate skeleton and settings for wireless
Instead of having a combined network settings object which has
Ethernet and Wirless settings, create a separate settings object for
wireless.
* Handle addresses/address-data property like NetworkManager
* Address ruff check
* Improve network API test
Add a test which changes from "static" to "auto". Validate that settings
are updated accordingly. Specifically, today this does clear the DNS
setting (by not providing the property).
* ruff format
* ruff check
* Complete TEST_INTERFACE rename
* Add partial network update as test case
2024-08-30 16:07:04 +02:00
Mike Degatano
7fd6dce55f
Migrate to Ruff for lint and format ( #4852 )
...
* Migrate to Ruff for lint and format
* Fix pylint issues
* DBus property sets into normal awaitable methods
* Fix tests relying on separate tasks in connect
* Fixes from feedback
2024-02-05 11:37:39 -05:00
Mike Degatano
abbf8b9b65
Identify network interfaces by mac over name ( #4416 )
...
* Identify network interfaces by mac over name
* Refactor long if statement into method
2023-07-06 16:26:19 -04:00
Mike Degatano
d9b86fa2ab
Use session dbus for udisks2 tests ( #4194 )
...
* Use session dbus for udisks2 tests
* Don't redefine type
2023-03-17 20:56:34 +01:00
Mike Degatano
0ddce4d9bc
Use session dbus for network tests ( #4191 )
...
* Use session dbus for network tests
* Don't use session dbus for coresys yet
2023-03-17 14:26:41 +01:00
Mike Degatano
618c89c4d8
Don't sync unmanaged interfaces ( #3925 )
2022-10-04 20:17:30 +02:00
Mike Degatano
951efd6b29
Replace __del__ with explicit disconnect ( #3892 )
2022-09-23 10:28:16 +02:00
Mike Degatano
99bc201688
Listen for dbus property changes ( #3872 )
...
* Listen for dbus property changes
* Avoid remaking dbus proxy objects
* proper snake case for pylint
* some cleanup and more tests
2022-09-17 09:55:41 +02:00
Pascal Vizeli
bd786811a3
Network: abstract dbus and supervisor - ipv6/wifi/vlan ( #2217 )
...
* Abstract code between dbus - supervisor
* cleanup v2
* fix address vs interface
* fix API calls
* Fix methodnames
* add vlan type
* add vlan support
* Fix tests
* Add wifi support
* more OOO
* fix typing import
* typing part 2
* Fix profile
* fix test payload
* ignore powersafe
* support privancy
* fix property
* Fix tests
* full support all API
* Fix all
* more robust
* Update supervisor/dbus/network/connection.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Fix gateway
* fix empty gateway
* Allow no ipv6 or ipv4 kernel support
* Exclude device drivers
* Add wifi
* Use loop on api
* refactory p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p3
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p4
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p5
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p6
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p7
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p8
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix lint
* update sup p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* update sup p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix tests
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix logging
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* improve mock handling
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* add fixtures
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix tests
* better testing
* Add more tests
* Fix API test
* Add test for vlan payload
* Support variation
* Fix doc string
* support remove & wifi scan
* make sure we ignore local-link on ipv6
* remove privancy - add vlan
* Fix tests
* fix isort
* Fixture dbus by commands
* Add dnsmanager fixture
* expose commands called by dbus
* Add wifi tests
* Update supervisor/plugins/dns.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Address comments & fix tests
* change url to be closer on others
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
2020-11-09 08:56:42 +01:00
Joakim Sørensen
9bcb15dbc0
MVP: Add Network Manager context ( #1937 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch >
2020-08-24 16:58:02 +02:00