Commit Graph

61 Commits (7a4e40ade047d9ef5e873a6b398bc1ba7ca3420f)

Author SHA1 Message Date
Sid 2cc916db6d
Replace pylint broad-except with Ruff BLE001 () 2024-05-07 14:00:27 +02:00
Øyvind Matheson Wergeland fdef3ece13
Fix placeholder quotes ()
* When quoting placeholders, always use double quotes so Lokalise recognizes the placeholder.

* Ensure that strings does not contain placeholders in single quotes.

* Avoid redefining value

* Moved string_with_no_placeholders_in_single_quotes

* Define regex once

* Fix tests
2024-04-06 13:01:56 +02:00
J. Nick Koston 5394a2a34a
Load mailbox integration platforms in tracked tasks () 2024-04-03 11:12:38 -10:00
Sid 82a60fe8ad
Enable Ruff RSE () 2024-03-18 00:40:38 +01: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
Robert Resch d7fb949994
Deprecate mailbox platform () 2024-02-27 13:50:02 +01:00
Marc Mueller a9147cf3dd
Use builtin TimeoutError [k-n] () 2024-02-05 12:08:18 +01:00
Erik Montnemery 95f7db1970
Move config_per_platform and extract_domain_configs to config.py () 2023-12-04 12:48:49 +01:00
Marc Mueller 71d985e4d6
Use asyncio.timeout [i-n] () 2023-08-15 14:32:15 +02:00
Erik Montnemery 3ed8e2d0e1
Add empty config schema to mailbox () 2023-06-02 09:28:13 +02:00
epenet 4a0988eb5d
Adjust shutdown registration in EntityComponent ()
* Adjust shutdown registration in EntityComponent

* Adjust

* Make it more explicit

* docstring
2023-04-13 08:47:04 +02:00
Erik Montnemery 1d64ba9d34
Sort manifests 6 () 2023-02-08 20:38:43 +01:00
Franck Nijhof 939eef3b28
Remove translations from Core ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Franck Nijhof 2b27cfdabb
Set system & entity integration types () 2022-10-04 10:36:42 -04:00
epenet 996bcbdac6
Make EntityComponent generic () 2022-09-14 14:16:23 -04:00
epenet 02c9541862
Improve type hints in mailbox () 2022-09-13 21:55:50 +02:00
epenet 03f4eb84a0
Improve type hints in demo and dependencies () 2022-09-08 12:46:41 +02:00
epenet 946238fb02
Import frontend ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 10:01:12 +01:00
epenet 1a46a6687e
Add setup type hints to mailbox ()
* Add setup type hints to mailbox

* Add more type hints

* Adjust base helper

* Filter type is not None in mailbox

* Filter empty platforms in device_tracker

* Filter out empty platform in notify

* Filter out empty platform in entity_component

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-12 13:44:36 +01:00
epenet 4eae888546
Fix incorrect type hint in config_per_platform helper ()
* Adjust base helper

* Filter type is not None in mailbox

* Filter empty platforms in device_tracker

* Filter out empty platform in notify

* Filter out empty platform in entity_component

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-11 17:28:37 +01:00
J. Nick Koston 10d6247fee
Bump to aiohttp 3.8.0 () 2021-11-04 10:07:50 -05:00
Ville Skyttä cc97502a0c
Use HTTPStatus instead of HTTP_* consts in aiohttp web response statuses () 2021-10-01 09:27:44 -07:00
Ville Skyttä 9864f2ef8b
String formatting cleanups () 2021-07-13 00:12:55 +02:00
Martin Hjelmare 7e30ab2fb2
Add missing internal quality scale label ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-10 12:37:20 +02:00
Ville Skyttä a6358430b4
Fix deprecated asyncio.wait use with coroutines ()
https://docs.python.org/3/library/asyncio-task.html#asyncio-example-wait-coroutine
2021-02-10 14:16:58 +01:00
Ville Skyttä f8416484f8
More data entry flow and HTTP related type hints () 2020-05-26 09:28:22 -05:00
Joakim Sørensen 730a257f3c
Rename translations dir for integrations () 2020-04-21 16:11:05 -07:00
Paulus Schoutsen 95357dfc55 Update translations 2020-04-20 16:33:54 -07:00
Paulus Schoutsen 0d60d40512 Update translations 2020-04-16 13:00:10 -07:00
Paulus Schoutsen 6119e79023
Migrate frontend translations of domains to backend () 2020-04-16 11:52:27 -07:00
springstan fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant () 2020-04-08 23:20:03 +02:00
Franck Nijhof 7653dc947a
Enable pylint unnecessary-pass ()
* Enable pylint unnecessary-pass

* Process review suggestions

* Fix smhi tests
2020-04-05 10:33:07 +02:00
Paulus Schoutsen f1d3c0d19b
Remove unused manifest fields () 2020-04-03 12:58:19 -07:00
Paulus Schoutsen e9e44dbd97
Fix callback and async ()
* Fix callback and async

* Fix a return

* Fix test

* Fix mqtt tests

* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Franck Nijhof a84741392b
Format all manifests with prettier () 2020-01-06 21:28:23 +01:00
Bas Nijholt 710680d604 use isort to sort imports for components starting with 'm' () 2019-12-09 18:50:40 +05:30
Franck Nijhof c7da781efc Update documentation link URL for integrations in all manifests () 2019-10-02 09:25:44 -07:00
Ville Skyttä b738082dad Type check various base components ()
* Type check various component base classes, disabling bunch of checks for now

* Type hint fixes

* Help mypy out some

* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen 1a3a38d370 Dynamic panels ()
* Don't require all panel urls to be registered

* Allow removing panels, fire event when panels updated
2019-05-30 13:37:01 +02:00
Paulus Schoutsen f995ab9d54
Don't pass in loop ()
* Don't pass in loop

* Revert some changes

* Lint + Axis revert

* reinstate loop

* Fix a test

* Set loop

* Update camera.py

* Lint
2019-05-22 21:09:59 -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
Paulus Schoutsen cfe4cf30ad
Add manifests ()
* Add manifests

* Update auto name

* Update codeowners

* Add requirements from platforms

* Minor cleanup

* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Paulus Schoutsen f5076188ef
Consolidate all platforms that have no tests ()
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -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
PhracturedBlue 98b92c78c0 Add Call Data Log platform. Mailboxes no longer require media ()
* Add multiple mailbox support

* Fix extraneous debugging

* Add cdr support

* liniting errors

* Mailbox log messages should mostly be debug.  Fix race condition with initializing CDR

* async decorators to async

* Lint fixes

* Typo

* remove unneeded parameter

* Fix variable names

* Fix async calls from worker thread.  Other minor cleanups

* more variable renames
2018-09-21 11:55:12 +02:00
Fabian Affolter 0d7ee9b93b
Order imports () 2018-09-09 14:26:06 +02:00
Paulus Schoutsen 994b829cb4
add_devices -> add_entities ()
* add_devices -> add_entities

* Lint

* PyLint

* Revert external method in scsgate
2018-08-24 16:37:30 +02:00