Commit Graph

12 Commits (71e8c79cadfb770b3e87c8796dc3b70965662f5a)

Author SHA1 Message Date
epenet ead0e797c1
Use registry fixtures in tests (m-n) () 2024-05-28 13:40:45 +02:00
Marc Mueller 32f3f46542
Add empty line after module docstring (2) [tests.components] () 2024-03-08 19:16:21 +01:00
MatthewFlamm d0460d5424
Fix NWS error with no observation ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-05-17 22:00:13 +02:00
Franck Nijhof ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet 88444b2e0c
Add type hints to integration tests (part 16) () 2023-02-15 10:50:02 +01:00
Sean Chen 985c1b31e1
Use new device class in nws ()
* Replace unit consts with enums

* Remove default entries in NWSSensorEntityDescription

* Replace wind icon property with setting device_class in Wind Speed and Wind Gust sensors
2022-12-06 13:27:58 +01:00
epenet e84e5f134e
Use US_CUSTOMARY_SYSTEM in tests ()
* Use US_CUSTOMARY_SYSTEM in tests

* Don't update test_unit_system
2022-10-20 15:42:23 +02:00
epenet 00dd27ef1b
Apply hass-relative-import to tests (i-r) () 2022-09-19 09:46:59 +02:00
Franck Nijhof 69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass () 2022-05-17 16:40:45 +02:00
Marc Mueller 3e08e50050
Use EntityDescription - nws ()
* Use EntityDescription - nws

* Bugfix

* Bugfix 2
2021-07-27 01:46:01 +02:00
Marc Mueller d98e580c3c
Use NamedTuple - nws () 2021-07-21 22:24:07 -07:00
MatthewFlamm f8f0495319
Add nws sensor platform ()
* Resolve rebase conflict.

Remove logging

* lint: fix elif after return

* fix attribution

* add tests for None valuea

* Remove Entity import

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Import SensorEntity

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Inherit SensorEntity

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* remove unused logging

* Use CoordinatorEntity

* Use type instead of name.

* add all entities

* add nice rounding to temperature and humidity

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-04-01 18:50:37 +02:00