Commit graph

122 commits

Author SHA1 Message Date
J. Nick Koston
23ebd80285
Schedule coroutines with eager_task from async_track_state_change_event () 2024-03-09 11:24:54 -10:00
J. Nick Koston
a50883d975
Run service call tasks eagerly () 2024-03-08 20:37:21 -10:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] () 2024-03-08 19:16:21 +01:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] () 2024-03-08 14:50:04 +01:00
J. Nick Koston
da50e459bf
Ensure knx tests add config entry before updating it () 2024-02-12 23:13:10 +01:00
J. Nick Koston
5528ae9707
Migrate knx to use async_update_entry to alter config entries () 2024-02-12 09:39:05 +01:00
Matthias Alphart
f53109f513
Move KNX service registration to async_setup () 2024-01-07 23:26:46 +01:00
Matthias Alphart
a9b51f0255
Fix KNX telegram device trigger not firing after integration reload () 2024-01-07 20:32:17 +01:00
Jan Bouwhuis
c7eab49c70
Raise ServiceValidationError on invalid select option ()
* Raise ServiceValidationError on invalid select option

* Fix tests

* Correct place holders

* More test fixes
2023-12-27 09:45:55 +01:00
Joost Lekkerkerker
a82410d5e9
Deduplicate constants E-Z () 2023-12-13 17:05:37 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Erik Montnemery
67e25dc0bf
Quote domain name in setup logs ()
* Quote domain name in setup logs

* Update tests
2023-11-20 12:55:16 +01:00
Erik Montnemery
80813e992d
Improve formatting of component errors ()
* Improve formatting of component errors

* Update tests
2023-11-17 23:01:00 +01:00
Jan-Philipp Benecke
0eafc8f2cd
Update k-l* tests to use entity & device registry fixtures () 2023-11-13 20:02:33 +01:00
Matthias Alphart
70196d5ee0
Fix KNX expose default value when attribute is None ()
Fix KNX expose default value when attribute is `null`
2023-11-06 08:39:40 +01:00
Erik Montnemery
e6895b5738
Fix menu in knx config flow ()
* Fix menu in knx config flow

* Update tests

* Fix strings.json

* Rename new menu steps for readabiltiy

---------

Co-authored-by: Matthias Alphart <farmio@alphart.net>
2023-10-17 22:25:35 +02:00
Michael Hammer
f899e5159b
KNX: Provide project data and parser version via websocket ()
* feat(knxproject-explore): providing knxproject via websocket, also xknxproject version in info mesage

* feat(knxproject-explore): adding test case

* reverted back adding of xknxproject version

* fix(): Enriching get project test case to check against FIXTURE

* feat(knxproject-explore): providing knxproject via websocket, also xknxproject version in info mesage

* feat(knxproject-explore): adding test case

* reverted back adding of xknxproject version

* fix(): Enriching get project test case to check against FIXTURE
2023-09-26 23:17:37 +02:00
Joost Lekkerkerker
9c54c4abf5
Use snapshot assertion for KNX diagnostics ()
Co-authored-by: farmio <farmio@alphart.net>
2023-08-21 11:48:55 +02:00
Matthias Alphart
0f5d423d1e
Move KNX keyring validation and storage to helper module ()
* Move KNX keyfile validation and store to helper module

* Rename module and fix tests
2023-08-07 23:30:14 +02:00
Paul Bottein
83af2f5b8b
Allow to sort options in select selector ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-08-03 21:49:22 +02:00
Matthias Alphart
74deb8b011
Add datetime platform to KNX () 2023-07-25 11:04:05 +02:00
Matthias Alphart
8ff9f2ddbe
Add date platform to KNX () 2023-07-24 21:12:37 +02:00
Matthias Alphart
89259865fb
Restore KNX telegram history ()
* Restore KNX telegram history

* increase default log size

* test removal of telegram history
2023-07-09 21:15:55 +02:00
Matthias Alphart
479015244d
KNX Cover: Use absolute tilt position if available () 2023-07-09 12:00:51 +02:00
Matthias Alphart
c81b6255c2
Use async_on_remove for KNX entities removal ()
* Use `async_on_remove` for KNX entities removal

* review
2023-07-01 07:16:45 -04:00
Matthias Alphart
1615f3e1fd
Add reload service to KNX () 2023-06-28 21:45:17 -04:00
Matthias Alphart
489781c1e6
Add time platform to KNX () 2023-06-28 15:19:32 +02:00
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap () 2023-06-27 17:42:46 +02:00
Matthias Alphart
2ce23c17ca
Update KNX frontend - add Group monitor telegram detail view ()
* Use TelegramDict for WS communication

* Update knx_frontend
2023-06-25 14:58:08 +02:00
Matthias Alphart
733bca88f1
Fix KNX device trigger passing info data () 2023-06-22 21:13:10 +02:00
Ville Skyttä
2e59ae9e90
Import util.dt as dt_util in components/[k-o]* () 2023-05-29 23:02:14 +02:00
Matthias Alphart
b10e73e2d4
Configurable KNX Telegram history size ()
* Configurable KNX Telegram history size

* Add maximum value to description
2023-05-22 18:09:59 +02:00
Matthias Alphart
c522ea855d
KNX Group Monitor: Load latest 50 Telegrams on start ()
* remove impossible test

IndividualAddress telegrams are not processed by xknx.telegram_queue

* Use Telegrams helper class for group monitor messages

* Store 50 telegrams in deque for group monitor

* Send recent telegrams at once on connection of group monitor

* Update KNX-frontend to support group monitor prepopulation
2023-05-17 09:58:00 +02:00
Matthias Alphart
2f8e8901fc
Add KNX interface device trigger for telegrams ()
* telegram device trigger initial

* add Telegrams helper class

to parse and convert Telegram only once instead of once per device trigger

* translation

* label for extra_field

* test device trigger

* test trigger callback removal

* rename extra_field key to same name as used in trigger

* typo
2023-05-15 22:59:29 +02:00
Matthias Alphart
6250b0a230
Add a custom panel for KNX with a group monitor ()
* Add KNX panel

* provide project data for the panel group monitor

* upload and delete project from panel

* test project store

* more tests

* finish tests

* use integers for DPTBinary payload monitor display

* add project to diagnostics

* require new frontend version

* update knx_frontend

* review suggestions

* update xknxproject to 3.1.0

---------

Co-authored-by: Marvin Wichmann <me@marvin-wichmann.de>
2023-05-11 00:13:22 +02:00
Matthias Alphart
33808cd268
Add entity name translations to KNX system sensors ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-04-23 01:31:59 +02:00
Matthias Alphart
95d44e100b
Update xknx to 2.9.0 ()
* Update xknx to 2.8.0

* add tests for validators

* Update strings.json

* Update xknx to 2.9.0
2023-04-22 18:25:14 +02:00
Matthias Alphart
557b9c7d51
Add KNX interface device with diagnostic entities () 2023-03-19 02:13:52 -11:00
Matthias Alphart
bfae8992a9
Better log message for KNX expose conversion error () 2023-03-08 22:42:07 +01:00
epenet
14bf68ad03
Cleanup expected_lingering_tasks in knx () 2023-03-07 11:59:31 +01:00
epenet
c51bde9a26
Fail CI on lingering tasks () 2023-03-07 11:35:48 +01:00
Matthias Alphart
36dabaaea6
Fix lingering tasks in KNX tests () 2023-03-05 20:19:42 -05:00
Matthias Alphart
e849878a48
Fix KNX Keyfile upload ()
* Fix KNX Keyfile upload

* use shutil.move instead
2023-03-02 10:13:02 -05:00
epenet
d65dff3f9e
Adjust entity registry access in tests (2) () 2023-03-01 16:23:36 +01:00
Jan Bouwhuis
4f6a25b470
Allow parameterizing YAML config in tests ()
* Add fixture to parameterize yaml config

* Apply to more tests

* Re-add @fixture label

* Add fixtures to patch yaml content and targets

* Typo

* Improve docstr

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update references to mock_yaml_configuration

* Apply new fixtures

* Apply to check_config tests

* Follow up comments

* Rename fixtures, update docstr

* Split paths

* Patch load_yaml_config_file instead

* sort

* Fix tests

* improve docst

* Rename fixtures

* sorting

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Improve docstr

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Improve docstr

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Improve docstr

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Improve docstr

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Improve docstr

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Improve docstr

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-20 16:57:12 +01:00
Matthias Alphart
6a0ea09f29
Upload KNX Keyfile from Config/Options Flow directly ()
* Manage KNX Keyfile from UI

* migrate config entry to use new keyfile

* Revert "migrate config entry to use new keyfile"

use same config style as before instead of entry version migration

* clean up uploaded file when integration is removed

* change default filename

* revert to previous step name

* remove empty directory on unload
2023-02-20 14:48:56 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
Matthias Alphart
d7861e79c5
Update xknx to 2.5.0 () 2023-02-14 12:44:43 +01:00
epenet
ea29cdfe83
Add type hints to integration tests (part 12) () 2023-02-13 13:03:51 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00