Commit Graph

27 Commits (7a4e40ade047d9ef5e873a6b398bc1ba7ca3420f)

Author SHA1 Message Date
J. Nick Koston ee535ee611
Ensure test async_create_task eager start behavior matches production () 2024-04-13 15:58:52 -05:00
J. Nick Koston ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately () 2024-04-08 10:07:54 -10:00
J. Nick Koston 1fd5f64dcc
Migrate matrix to use run_immediately for start listener ()
* Migrate matrix to use run_immediately for start listener

* Migrate matrix to use run_immediately for start listener
2024-04-07 22:30:54 -04:00
J. Nick Koston fb98a6f026
Make run_immediately the default for core EventBus listeners ()
* DNM: Make run_immediately the default for listeners

This is a test to see how much progress we have made twords this goal

https://github.com/home-assistant/core/pull/113727#issuecomment-2004587947

* fix shutdown

* Revert "fix shutdown"

This reverts commit a8969d7db9.

* set false since it break utility meter tests

* one more

* fix rfxtrx test

* test needs to be explict now

* fix matrix

* fail sooner
2024-04-05 22:14:20 -04:00
Joost Lekkerkerker 595d07f1c6
Improve lists in integrations [L-M] ()
* Improve lists in integrations [L-M]

* Update homeassistant/components/mailbox/__init__.py

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* Fix

---------

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-03-13 21:28:21 +01:00
Marc Mueller 59a6035d3f
Add empty line after module docstring [j-m] () 2024-03-08 09:01:29 -05:00
Paarth Shah 5afe155cd9
Fix MatrixBot not resolving room aliases per-command () 2024-01-16 10:07:51 +01:00
Marc Mueller 6e0ba8e726
Improve matrix typing () 2023-12-05 13:40:14 +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
Paarth Shah 30ba78cf82
Fix resolving Matrix room aliases () 2023-10-23 10:35:41 +02:00
Paarth Shah 4d3b978398
Change matrix component to use matrix-nio instead of matrix_client () 2023-09-02 15:02:55 +02:00
epenet 10bb0ab6b4
Use load_json_object in matrix () 2023-02-22 13:56:11 +01:00
epenet ba23816a0c
Inverse json import logic ()
* Fix helpers and util

* Adjust components

* Move back errors

* Add report

* mypy

* mypy

* Assert deprecation messages

* Move test_json_loads_object

* Adjust tests

* Fix rebase

* Adjust pylint plugin

* Fix plugin

* Adjust references

* Adjust backup tests
2023-02-16 11:37:57 +01:00
Franck Nijhof ca1a12898c
Enable Ruff D212 () 2023-02-03 23:08:48 +01:00
Erik J. Olson 0caeeb56c5
Add Matrix.io HTML message format support () 2022-06-30 12:00:29 -07:00
Erik J. Olson 1c2bea2dbd
Fix gif autoplaying in Matrix chat clients () 2022-04-13 19:02:38 +02:00
Antonio Larrosa 2aaeb1fa99
Fix finding matrix room that is already joined ()
After some debugging, it seems room.canonical_alias contains the
room alias that matches the room_id_or_alias value but is not
contained in room.aliases (which is empty). As a result, the
matrix component thought the room wasn't alread joined, joins
again, and this replaces the previous room which had the listener.
This resulted in the component callback not being called for new
messages in the room.

This fixes 
2022-03-15 22:33:59 +01:00
epenet 33e926371f
Add init type hints [m] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:28:14 +01:00
epenet 709afc63b0
Ensure service calls are typed [m-z] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-29 22:41:55 +01:00
bestlibre 98d7e6b898
Add images support to matrix notify ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-03-18 11:30:38 -07:00
Franck Nijhof 53545c984b
Log lines do not end with a full stop () 2020-07-05 23:04:19 +02:00
Fabian Affolter 31cd0af47a Upgrade matrix-client to 0.3.2 () 2019-12-17 16:26:36 +01:00
springstan d79d9e0bfb Move imports to top for matrix () 2019-12-04 11:15:29 +01:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
cgtobi 2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Fabian Affolter 161c368c9d Update file header ()
* Update file header

* Update __init__.py
2019-02-13 20:35:12 -08:00
Paulus Schoutsen e2d3c27e85
Embed all platforms into components ()
* Consolidate all components with platforms

* Organize tests

* Fix more tests

* Fix Verisure tests

* one final test fix

* Add change

* Fix coverage
2019-02-02 07:13:16 -08:00