Commit Graph
34 Commits
Author SHA1 Message Date
Joost LekkerkerkerandGitHub b9281327c4 Use FlowResultType enum in config flow tests A-M (#114681) 2024-04-03 09:21:17 +02:00
Joost LekkerkerkerandGitHub 9b41e3d124 Use is in enum comparison in config flow tests A-E (#114669) 2024-04-02 11:22:05 -10:00
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-26 00:02:16 +01:00
Marc MuellerandGitHub 38adfbf1a3 Add empty line after module docstring [tests a-e] (#112708) 2024-03-08 08:50:25 -05:00
J. Nick KostonandGitHub 16d2482fe6 Fix formatting of mac addresses from dhcp discovery mocking in elkm1 (#110564)
dhcp returns addresses in lowercase without :
2024-02-14 20:58:40 +01:00
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <[email protected]>
2023-11-27 14:38:59 +01:00
Franck NijhofandGitHub ed79265843 Enable Ruff PT006 (#88165)
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenetandGitHub 728f62b1ec Add type hints to integration tests (part 5) (#87850) 2023-02-12 19:39:48 +01:00
epenetandGitHub 3052de3e8e Add type hints to integration tests (d-e) (#87699) 2023-02-08 13:01:44 +01:00
Franck NijhofandGitHub 5e81d28116 Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Franck NijhofandGitHub 73c4ac53d2 Enable T20 (flake8-print) to ban use of print statements (#86525)
* Enable T20 (flake8-print) to ban use of print statements

* Make compatible with flake8 config
2023-01-24 14:24:21 +01:00
J. Nick KostonandGitHub 2bea77549d Fix creating multiple ElkM1 systems with TLS 1.2 (#81627)
fixes https://github.com/home-assistant/core/issues/81516
2022-11-07 12:09:36 +01:00
J. Nick KostonandGitHub 883ac12bcb Add additional coverage for adding multiple elkm1 instances (#81528)
* Add additional coverage for adding multiple elkm1 instances

* fix copy error
2022-11-05 15:57:32 +01:00
Franck NijhofandGitHub a6244eea28 Search/replace RESULT_TYPE_* by FlowResultType enum (#74656) 2022-07-07 21:28:18 +02:00
J. Nick KostonandGitHub 0dc12c70e3 Add logbook descriptions for elkm1 keypad press events (#72017)
* Add logbook descriptions for elkm1 keypad press events

* drop extra block
2022-05-18 08:47:02 +02:00
Glenn WatersandGitHub 2a99084911 ElkM1 integration, add strict types to config_flow (#70323) 2022-04-20 10:46:36 -07:00
14fbda8412 Add option to connect to elkm1 non-secure when secure is discovered (#68735)
Co-authored-by: Glenn Waters <[email protected]>
2022-03-29 00:10:49 -07:00
J. Nick KostonandGitHub aa7cb087a9 Fix ignoring elkm1 discovery (#68750) 2022-03-28 11:05:50 +02:00
J. Nick KostonandGitHub 26c5dca45d Ensure elkm1 can be manually configured when discovered instance is not used (#67712) 2022-03-06 00:02:22 -08:00
J. Nick KostonandGitHub 00c6e30988 Fix ElkM1 systems that do not use password authentication (#67194) 2022-02-24 11:07:17 -08:00
J. Nick KostonandGitHub d79d775d92 Switch elkm1 to use integration discovery (#66572) 2022-02-15 23:18:55 +01:00
J. Nick KostonandGitHub f943f30492 Add discovery support to elkm1 (#65205) 2022-02-07 16:25:26 -08:00
a4d9019ffc Refactor persistent notification to no longer route all data via a service (#57157)
* Convert persistent notification tests to async

* Create/dismiss persistent notifications in exposed functions, not service calls

* Fix notify persistent_notification

* Remove setting up persistent_notification

* Drop more setups

* Empty methods

* Undeprecate sync methods because too big task

* Fix setup clearing notifications

* Fix a bunch of tests

* Fix more tests

* Uno mas

* Test persistent notification events

* Clean up stale comment

Co-authored-by: Martin Hjelmare <[email protected]>
2021-10-07 12:58:00 +02:00
Glenn WatersandGitHub 57851e9623 Support connecting to ElkM1 over TLS 1.2 (#56887) 2021-10-03 08:06:29 -10:00
Franck NijhofandGitHub bbbc3a5f50 Merge of nested IF-IF case in elkm1 test (#48374) 2021-03-26 06:54:16 -10:00
Franck NijhofandGitHub 65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Glenn WatersandGitHub 6645cb2637 Cleanup log style and tests for ElkM1 (#42353) 2020-10-26 10:36:28 +01:00
Glenn WatersandGitHub cc77621477 Clean up ElkM1 lib (#42319) 2020-10-24 23:46:22 -05:00
Paulus SchoutsenandGitHub 1c36bf5e19 Fix block till done in create entry config flow tests (#42290) 2020-10-24 16:20:56 +02:00
Franck NijhofandGitHub 1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
Paulus SchoutsenandGitHub ec47216388 Use built-in test helpers on 3.8 (#34901) 2020-04-30 13:29:50 -07:00
J. Nick KostonandGitHub 97609576cb Fix default elkm1 temp units (#34274) 2020-04-16 15:18:41 -07:00
J. Nick KostonandGitHub 5a1b0edd96 Add inline comments to elkm1 about how config is updated from… (#33361) 2020-03-28 17:23:39 +01:00
J. Nick KostonandGitHub 18a4829314 Config flow for elkm1 (#33297)
* Config flow for elkm1

* As entity ids can now be changed, the “alarm_control_panel”
attribute “changed_by_entity_id” is now “changed_by_keypad”
and will show the name of the Elk keypad instead of the entity id.

* An auto configure mode has been introduced which avoids the
need to setup the complex include and exclude filters.  This
functionality still exists when configuring from yaml for power
users who want more control over which entities elkm1 generates.

* restore _has_all_unique_prefixes

* preserve legacy behavior of creating alarm_control_panels that have no linked keypads when auto_configure is False

* unroll loop
2020-03-27 15:38:35 -05:00