Commit Graph
32 Commits
Author SHA1 Message Date
epenetandGitHub d0a188b86d Standardize homeassistant imports in component tests (m-z) (#136807) 2025-01-29 08:57:57 +01:00
Marc MuellerandGitHub f11b316dac Import Generator from collections.abc (4) (#120917) 2024-07-01 11:54:42 +02:00
G JohanssonandGitHub bd37ce6e9a Remove beat (internet time) from time_date (#119785) 2024-06-16 23:36:06 -04:00
Marc MuellerandGitHub 59e178df3b Import Generator from typing_extensions (5) (#118993) 2024-06-06 17:33:27 +02:00
epenetandGitHub 44f715bd02 Use issue_registry fixture in component tests (#118041) 2024-05-24 15:54:20 +02:00
J. Nick KostonandGitHub 5a609c34bb Fix blocking I/O in the event loop when loading timezones (#117721) 2024-05-20 11:06:03 +02:00
Joost LekkerkerkerandGitHub ee66f6ec8c Use is in enum comparison in config flow tests P-T (#114675) 2024-04-02 11:21:50 -10:00
Marc MuellerandGitHub 87165c0d6e Add empty line after module docstring [tests t-z] (#112712) 2024-03-08 14:44:56 +01:00
65581e94ea Add config flow for Time & Date (#104183)
Co-authored-by: Erik <[email protected]>
2024-01-23 12:18:31 +01:00
Erik MontnemeryandGitHub a7f4d426ee Handle time zone change in time_date (#106880) 2024-01-02 16:28:22 +01:00
Erik MontnemeryandGitHub 03cbf8b28d Fix state update in time_date sensor (#106879) 2024-01-02 16:22:16 +01:00
Erik MontnemeryandGitHub 513261baff Improve time_date tests (#106878) 2024-01-02 16:04:38 +01:00
8f8c0ef13b Deprecate 'beat' display option in Time & Date (#106871)
* Deprecate 'beat' display option in Time & Date

* Move deprecation warning

* Update homeassistant/components/time_date/const.py

Co-authored-by: Sander <[email protected]>

---------

Co-authored-by: G Johansson <[email protected]>
Co-authored-by: Sander <[email protected]>
2024-01-02 14:11:45 +01:00
Jan-Philipp BeneckeandGitHub a090bcb8a5 Migrate time_date tests to use freezegun (#105409) 2023-12-09 21:35:52 +01:00
Ville SkyttäandGitHub b51c0f6ddc Remove unnnecessary pylint configs from components [s-z]* (#98925) 2023-08-24 01:25:32 +02:00
epenetandGitHub 88cfbf6a34 Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
epenetandGitHub 278050a73f Add type hints to integration tests (t-z) (#87707) 2023-02-08 19:10:53 +01:00
epenetandGitHub 30bf0634fe Add per-file-ignore to pylint (#86289) 2023-01-22 17:26:24 +01:00
cf4033b1bc Simplify time zone setting in tests (#68330)
* Simplify timezone setting in tests

* Fix typo

* Adjust caldav tests

* Adjust input_datetime tests

* Adjust time_date tests

* Adjust tod tests

* Adjust helper tests

* Adjust recorder tests

* Adjust risco tests

* Adjust aemet tests

* Adjust flux tests

* Adjust forecast_solar tests

* Revert unnecessary change in forecast_solar test

* Adjust climacell tests

* Adjust google tests

* Adjust sensor tests

* Adjust sonarr tests

* Adjust template tests

* Adjust zodiac tests

Co-authored-by: Martin Hjelmare <[email protected]>
2022-03-20 10:25:15 +01:00
Franck NijhofandGitHub 65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Anders MelchiorsenandGitHub 55b214ec9c Fix time_date interval for DST (#43166) 2020-11-13 13:32:56 +01:00
Anders MelchiorsenandGitHub 87d86026ed Fix time_date timestamp offsets (#43165) 2020-11-13 13:29:57 +01:00
Anders MelchiorsenandGitHub 1a888433cb Fix beat calculation (#43142) 2020-11-13 09:33:00 +01:00
Anders MelchiorsenandGitHub e0f1d0ab20 Mock time_date sensor tests (#43141) 2020-11-13 09:31:55 +01:00
Paulus SchoutsenandGitHub 8d4675713a Fix event test (#42078) 2020-10-19 16:50:46 +02:00
Sebastian RodriguezandGitHub 226a6f7584 Rewrite time_date unittest tests to pytest style test functions (#41149) 2020-10-19 12:14:07 +02:00
Paulus SchoutsenandGitHub c33edbe5bb Use TestCase.addCleanup (#36560) 2020-06-08 12:26:40 -07:00
Paulus SchoutsenandGitHub 2af984917e Use asynctest-mock in most places (#35109)
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Claudio HecklerandFabian Affolter edce497a0d New date_time_utc display option added to the time_date sensor platform (#30158) 2019-12-23 21:48:24 +01:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
uchaganiandFabian Affolter 21871b3d6b add date_time_iso to time_date sensor (#22199)
* add date_time_iso to time_date sensor

* hound fixes

* lint fixes
2019-03-21 08:55:30 +01:00
Penny WoodandPaulus Schoutsen f195ecca4b Consolidate all platforms that have tests (#22109)
* Moved climate components with tests into platform dirs.

* Updated tests from climate component.

* Moved binary_sensor components with tests into platform dirs.

* Updated tests from binary_sensor component.

* Moved calendar components with tests into platform dirs.

* Updated tests from calendar component.

* Moved camera components with tests into platform dirs.

* Updated tests from camera component.

* Moved cover components with tests into platform dirs.

* Updated tests from cover component.

* Moved device_tracker components with tests into platform dirs.

* Updated tests from device_tracker component.

* Moved fan components with tests into platform dirs.

* Updated tests from fan component.

* Moved geo_location components with tests into platform dirs.

* Updated tests from geo_location component.

* Moved image_processing components with tests into platform dirs.

* Updated tests from image_processing component.

* Moved light components with tests into platform dirs.

* Updated tests from light component.

* Moved lock components with tests into platform dirs.

* Moved media_player components with tests into platform dirs.

* Updated tests from media_player component.

* Moved scene components with tests into platform dirs.

* Moved sensor components with tests into platform dirs.

* Updated tests from sensor component.

* Moved switch components with tests into platform dirs.

* Updated tests from sensor component.

* Moved vacuum components with tests into platform dirs.

* Updated tests from vacuum component.

* Moved weather components with tests into platform dirs.

* Fixed __init__.py files

* Fixes for stuff moved as part of this branch.

* Fix stuff needed to merge with balloob's branch.

* Formatting issues.

* Missing __init__.py files.

* Fix-ups

* Fixup

* Regenerated requirements.

* Linting errors fixed.

* Fixed more broken tests.

* Missing init files.

* Fix broken tests.

* More broken tests

* There seems to be a thread race condition.
I suspect the logger stuff is running in another thread, which means waiting until the aio loop is done is missing the log messages.
Used sleep instead because that allows the logger thread to run. I think the api_streams sensor might not be thread safe.

* Disabled tests, will remove sensor in #22147

* Updated coverage and codeowners.
2019-03-18 23:07:39 -07:00