1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-01 20:57:51 +00:00
Commit Graph

22 Commits

Author SHA1 Message Date
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] () 2024-03-08 19:16:21 +01:00
Marc Mueller
2ef2172b01
Convert test helpers to get hass instance to contextmanagers ()
* Convert get_test_home_assistant helper to contextmanager

* Convert async_test_home_assistant helper to contextmanager

* Move timezone reset to async_test_home_assistant helper
2024-02-11 21:23:51 +01:00
Joost Lekkerkerker
e4453ace88
Add country code constant () 2023-12-13 16:50:46 +01:00
Joost Lekkerkerker
3f88c518a5
Use translated name for entity id for Picnic () 2023-10-22 21:39:01 +02:00
Joost Lekkerkerker
a65ad37c8b
Change config entry title to Picnic () 2023-10-18 14:27:37 +02:00
Ville Skyttä
940942a74a
Import util.dt as dt_util in components/[p-s]* () 2023-05-30 00:09:42 +03:00
Joost Lekkerkerker
a272f8dfb2
Move picnic sensor definitions ()
* Move types and mixin to sensor

* Move types and mixin to sensor
2023-04-13 16:46:10 +02:00
Franck Nijhof
c3d19f3827
Clean up accessing device_registry helpers via hass () 2022-05-17 12:22:15 -07:00
Franck Nijhof
69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass () 2022-05-17 16:40:45 +02:00
corneyl
137793c067
Add sensors for next Picnic deliveries () 2022-02-21 23:45:30 +01:00
Marc Mueller
ef7316d8d9
Update typing (5) [tests] () 2022-01-11 21:28:13 +01:00
Hmmbob
ec75b0caf0
Add Picnic last_order_max_order_time sensor () 2022-01-04 18:41:31 +01:00
corneyl
7fc5605639
Fix keyerror when no previous Picnic orders exist () 2021-12-27 20:31:35 +01:00
corneyl
b0704c190f
Fix picnic sensor time unit () 2021-12-27 17:44:45 +01:00
Dave T
d7de3fbfce
Use new enums in picnic tests () 2021-12-22 14:29:55 +01:00
Ville Skyttä
39691faccc
Use DeviceEntryType in non-typechecked code too () 2021-11-23 10:04:33 +01:00
Franck Nijhof
69b7495324
Sensor: Handle local->UTC conversion and reject timezoneless timestamps () 2021-11-22 17:04:06 +01:00
Franck Nijhof
01efe1eba2
Add datetime object as valid StateType ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-18 14:11:44 +01:00
Franck Nijhof
e94bebdf7b
Migrate attribution attribute for Picnic () 2021-10-11 20:39:51 -07:00
Marc Mueller
ce6921d73c
Use EntityDescription - picnic ()
* Use EntityDescription - picnic

* Change _attr_extra_state_attributes to be static

* Fix tests
2021-09-03 22:35:59 +02:00
Franck Nijhof
c68b259bd3
Cleanup of unused connection_class logic ()
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
corneyl
303ab36c54
Add Picnic integration ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: @tkdrob <tkdrob4390@yahoo.com>
2021-04-21 22:21:56 -07:00