hass-core/tests
Tim 9da155955a
Transport NSW: Set DeviceClass and StateClass (#96928)
* 2023.7.16
- Fix bug with values defaulting to "n/a" in stead of None

* 2023.7.16
- Set device class and state classes on entities

* 2023.7.16
- Set StateClass and DeviceClass directly on the entitiy

* 2023.7.16
- Fix black and ruff issues

* 2023.7.17
- Update logic catering for the 'n/a' response on an API failure
- Add testcase

* - Fix bug in formatting

* 2023.7.17
- Refacotr to consider the "n/a" response returned from the Python lib
on an error or faliure
- Remove setting of StateClass and DeviceClass as requested
- Add "n/a" test case

* 2023.7.17
- Remove unused imports

* 2023.7.18
- Apply review requested changes

* - Additional review change resolved

* Add State and Device class attributes
2023-07-20 08:35:26 +02:00
..
auth Use call_at for events instead call_later (#93431) 2023-05-24 21:04:07 +02:00
backports Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
components Transport NSW: Set DeviceClass and StateClass (#96928) 2023-07-20 08:35:26 +02:00
fixtures Unblock JSON CI by fixing improperly indented JSON in test fixture (#88803) 2023-02-26 14:41:16 -06:00
hassfest Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
helpers Improve handling of unrecoverable storage corruption (#96712) 2023-07-19 09:23:12 +02:00
pylint Remove incorrect ignore in pylint plugin (#90024) 2023-03-27 13:53:14 +02:00
resources
scripts Allow parameterizing YAML config in tests (#87981) 2023-02-20 16:57:12 +01:00
test_util Adjust json imports in tests (#88248) 2023-02-17 19:13:48 +01:00
testing_config Implement Wind Gust speed in Weather entity component (#95065) 2023-06-23 08:22:46 +02:00
util Update Ruff to v0.0.277 (#96108) 2023-07-09 10:10:23 -04:00
__init__.py
common.py Allow stopping a script with a response value (#95284) 2023-06-27 08:24:22 +02:00
conftest.py Refactor async_get_hass to rely on threading.local instead of a ContextVar (#96005) 2023-07-07 14:52:38 -04:00
ignore_uncaught_exceptions.py
ruff.toml Move overlapping pylint rules to ruff, disable mypy overlap (#94359) 2023-06-27 17:42:46 +02:00
syrupy.py Use ReadOnlyDict for entity registry options (#93824) 2023-05-30 20:11:39 -04:00
test_bootstrap.py Improve comment on patching the _import method in test bootstrap dependencies test (#91848) 2023-04-22 13:40:38 +02:00
test_config.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_config_entries.py Debounce discoveries to improve event loop stability at the started event (#94690) 2023-06-15 22:15:07 -04:00
test_core.py Refactor async_get_hass to rely on threading.local instead of a ContextVar (#96005) 2023-07-07 14:52:38 -04:00
test_data_entry_flow.py Reduce in progress flow matching overhead (#94403) 2023-06-11 10:41:38 +02:00
test_exceptions.py Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
test_loader.py Complete persistent notifications migration (#92828) 2023-05-25 23:09:13 -04:00
test_main.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_requirements.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_runner.py Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
test_setup.py Detect attempt to setup config entry integration via YAML (#93589) 2023-05-29 21:01:47 +02:00
test_test_fixtures.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
typing.py Add MockHAClientWebSocket test helper (#87832) 2023-02-10 10:23:26 -05:00