Commit Graph

310 Commits (c51e644203a0c93a791bc0d342d14a56728078fc)

Author SHA1 Message Date
J. Nick Koston 5b1f3d3e7f
Fix arm vacation mode showing as armed away in elkm1 (#139613)
Add native arm vacation mode support to elkm1

Vacation mode is currently implemented as a custom
service which will be deprecated in a future PR.

Note that the custom service was added long before
HA had a native vacation mode which was added
in #45980
2025-03-02 14:23:40 +01:00
Erik Montnemery f83c8de8d3
Update signature of platforms' async_setup_entry (#138201) 2025-02-10 21:08:03 +01:00
epenet a9433ca697
Standardize homeassistant imports in component (e-f) (#136824) 2025-01-29 11:36:22 +01:00
epenet bc8a2b58d3
Use new ServiceInfo location in components (part 1) (#135682) 2025-01-15 15:43:46 +01:00
Glenn Waters faf2c64cc4
Bump elkm1-lib to 2.2.11 (#135616) 2025-01-14 09:14:41 -10:00
Norbert Rittel 823feae0f9
Make description of alarm_arm_vacation consistent (#135257)
Small fix to also use "Arms …" in the description of the alarm_arm_vacation action, making it consistent with the other two alarm_arm_… actions.
2025-01-10 08:45:06 +01:00
Marc Mueller beb881492a
Fix method subtyping [elkm1] (#134210) 2024-12-29 16:40:51 +01:00
G Johansson 768c2b0f3d
Remove _enable_turn_on_off_backwards_compatibility A-F (#132417)
Remove _enable_turn_on_off_backwards_compatibility A-G
2024-12-05 21:46:59 +01:00
Norbert Rittel deb82cf072
Fix typo in name of "Alarm arm home instant" action (#131151) 2024-11-21 10:26:40 +01:00
G Johansson cdfec7ebb4
Implement new state property for alarm_control_panel which is using an enum (#126283)
* Alarm state from enum

* Fixes

* Set final

* Fix rebase

* Test const

* Fix breaking version

* Fix other for alarm_control_panel

* Fix integrations

* More

* More

* More

* More

* Fix zha

* Replace _attr_state

* Fix alarm_control_panel

* Fix tests

* Fixes

* Mods

* Change some

* More

* More

* More

* Tests

* Last tests

* Return enum

* Fix zha

* Remove not needed check

* Fix wording

* Fix homekit

* Mod prometheus

* Fix mypy

* Fix homekit

* Fix ifttt
2024-10-21 22:54:27 +02:00
Glenn Waters 19535b48ab
Bump elkm1_lib to 2.2.10 (#127344)
* Bump elk-lib to 2.2.9

* Bump elkm1_lib to 2.2.10

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-10-03 12:31:04 +02:00
Erik Montnemery 2b2f5c9353
Use ConfigFlow.has_matching_flow to deduplicate elkm1 flows (#126887) 2024-09-27 11:46:26 +02:00
c0ffeeca7 866ffcf639
Use bold to markup UI strings (#126748)
* Use bold to markup UI strings

* Use bold to markup UI strings
2024-09-25 15:33:23 +02:00
Erik Montnemery c638537731
Use 'select' instead of 'click' or 'press' when guiding users in flows (#126731) 2024-09-25 13:37:43 +02:00
epenet e3e93df187
Move elkm1 base entity to separate module (#126052) 2024-09-16 15:19:09 +02:00
G Johansson 84def0c041
Deprecate aux_heat in elkm1 (#125372)
* Deprecate aux_heat in elkm1

* Update homeassistant/components/elkm1/switch.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-08 14:23:00 +02:00
Erik Montnemery fce2e21c9f
Update icons.json to new service schema part 1 (#124768) 2024-08-28 13:47:02 +02:00
epenet 831a1d7ad1
Standardize import step variable name (part 1) (#124674) 2024-08-27 10:34:47 +02:00
Erik Montnemery ea7e88d000
Pass None instead of empty dict when registering entity services (#123878) 2024-08-14 07:04:29 -05:00
Joost Lekkerkerker 6ef8e87f88
Fix ruff redefined-argument-from-local PLR1704 (#120729)
* Fix PLR1704

* Fix
2024-06-28 12:31:07 +02:00
Marc Mueller 6bceb8ec48
Add some more VolDictType annotations (#120610) 2024-06-26 22:44:43 +02:00
Marc Mueller f4b124f5f1
Fix invalid schemas (#120450) 2024-06-25 20:17:38 +02:00
Marc Mueller 3a5acd6a57
Use VolDictType for service schemas (#120403) 2024-06-25 12:33:41 +02:00
Marc Mueller 44049c34f9
Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
J. Nick Koston 00150881a5
Migrate elkm1 to use config entry runtime_data (#117077) 2024-05-08 23:44:39 +02:00
Sid 2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
Glenn Waters 62a87b8430
Bump elkm1_lib to 2.2.7 (#116564)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-05-01 19:51:04 -05:00
J. Nick Koston d2a3473454
Migrate elkm1 to use async_schedule_reload (#115240) 2024-04-09 07:05:09 -10:00
Sid 0b9c9aff62
Add ruff rules PIE790, PIE794, PIE807, PIE810 (#113617) 2024-03-16 11:04:58 -10:00
Marc Mueller 0e3945ca6c
Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
Joost Lekkerkerker a9caa3e582
Add icon translations to Elkm1 (#111512) 2024-03-04 18:45:03 -10:00
Erik Montnemery e06446d0fa
Migrate integrations e-h to generic flowhandler (#111862) 2024-02-29 20:07:36 +01:00
J. Nick Koston da55ef7901
Fix elkm1 service calls running in the executor (#110655)
fixes
```
  File "/usr/src/homeassistant/homeassistant/components/elkm1/__init__.py", line 416, in _set_time_service
    _getelk(service).panel.set_time(dt_util.now())
  File "/usr/local/lib/python3.11/site-packages/elkm1_lib/panel.py", line 55, in set_time
    self._connection.send(rw_encode(datetime))
  File "/usr/local/lib/python3.11/site-packages/elkm1_lib/connection.py", line 152, in send
    self._send(QueuedWrite(msg.message, msg.response_command), priority_send)
  File "/usr/local/lib/python3.11/site-packages/elkm1_lib/connection.py", line 148, in _send
    self._check_write_queue.set()
  File "/usr/local/lib/python3.11/asyncio/locks.py", line 192, in set
    fut.set_result(True)
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 763, in call_soon
    self._check_thread()
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 800, in _check_thread
    raise RuntimeError(
RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one
```
2024-02-16 12:27:13 +01:00
Marc Mueller 7a89e58873
Use builtin TimeoutError [e-i] (#109679) 2024-02-05 12:00:37 +01:00
G Johansson a7b52c8dd7
Adds new climate feature flags to elkm1 (#109543) 2024-02-04 00:46:47 +01:00
Joost Lekkerkerker ac53b78a0c
Deduplicate constants A-D (#105638) 2023-12-13 14:21:44 +01:00
Marc Mueller c35f56ea77
Handle BaseException from asyncio gather (#103814) 2023-11-11 22:26:37 +01:00
Glenn Waters 276d245409
Bump elkm1-lib to 2.2.6 (#100537) 2023-09-17 20:39:23 -05:00
J. Nick Koston d624bbbc0c
Migrate elkm1 to use a dataclass for integration data (#99830)
* Migrate elkm1 to use a dataclass for integration data

* fix unsaved

* slotted

* missing coveragerc

* Revert "missing coveragerc"

This reverts commit 3397b40309.
2023-09-08 13:07:09 -04:00
J. Nick Koston 98ff3e233d
Fix missing name and identifiers for ELKM1 connected devices (#99828) 2023-09-08 13:32:21 +02:00
Joost Lekkerkerker 98cb5b4b5d
Use shorthand attributes for Elkm1 (#99275) 2023-08-29 14:46:24 +02:00
Marc Mueller e2d2ec8817
Use asyncio.timeout [b-e] (#98448) 2023-08-15 08:30:20 -05:00
Erik Montnemery 045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Paulus Schoutsen 7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof ea3be7a789
Migrate integration services (E-F) to support translations (#96367) 2023-07-11 23:57:29 +02:00
Franck Nijhof a7955e4458
Fix HAVCMode typing in Elk-M1 Control (#94639) 2023-06-15 15:27:49 +02:00
Glenn Waters acaa9ef9de
Bump elkm1-lib to 2.2.5 (#94296)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-11 15:25:01 -10:00
J. Nick Koston 6dd88a767b
Bump elkm1-lib to 2.2.2 (#92560)
changelog: https://github.com/gwww/elkm1/compare/2.2.1...2.2.2

fixes #92467
2023-05-04 22:20:25 -04:00
epenet 4d77c6f27f
Fix lingering timer in elkm1 (#92517) 2023-05-04 19:03:26 +02:00
Paulus Schoutsen 509d968814
Fix dangling task for elkm1 (#88286)
* Fix dangling task for elkm1

* Update homeassistant/components/elkm1/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-16 23:22:34 -05:00