1
0
mirror of https://github.com/home-assistant/core.git synced 2025-10-09 19:59:30 +00:00
Commit Graph

29 Commits

Author SHA1 Message Date
Marc Mueller
5b73bd2f8e Use EventType for state changed [h-m] () 2023-07-24 08:01:50 +02:00
Marc Mueller
9e67bccb89 Replace EventType annotations with Event () 2023-07-18 08:51:06 +02:00
G Johansson
635d8c01fb Add sum to min_max helper ()
sum to min_max
2022-11-24 20:21:09 +01:00
G Johansson
8704f1aa47 Fully type min_max () 2022-11-23 19:54:12 +01:00
G Johansson
be7e61b88b Add unique id for min_max () 2022-10-26 11:27:44 +02:00
Justin Sherman
f26fadbdfc Add range to min_max () 2022-09-25 23:08:31 -04:00
epenet
6355e682fa Improve entity type hints [m] () 2022-09-05 10:59:36 +02:00
Maciej Bieniek
981c34f88d Use class attribute instead of property in min_max integration () 2022-06-07 19:15:25 +02:00
Maciej Bieniek
c6b835dd91 Add missing state_class to min_max sensors ()
Add missing state_class
2022-06-07 17:02:12 +02:00
J. Nick Koston
40eb1554d9 Only set attributes based on the configured type for min_max sensors () 2022-04-17 22:53:49 -07:00
Erik Montnemery
fa07dd660f Use stdlib statistics functions in min_max sensor () 2022-04-04 17:42:21 +02:00
Erik Montnemery
66d892237d Add config flow for min_max sensor ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-28 09:39:54 +02:00
epenet
80b6195505 Add sensor setup type hints [m-n] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:09:36 +01:00
Erik Montnemery
2720ba2753 Move temperature conversions to sensor base class (4/8) ()
* Move temperature conversions to entity base class (4/8)

* Fix litterrobot sensor

* Fix tests
2021-08-11 21:17:47 +02:00
Franck Nijhof
86212db71d Merge of nested IF-IF cases - K-N () 2021-03-27 10:03:15 +01:00
Erik Montnemery
fdf97eaca3 Migrate integrations i-m to extend SensorEntity () 2021-03-22 19:59:03 +01:00
Erik Montnemery
14a59d290a Update integrations j-o to override extra_state_attributes() () 2021-03-11 20:11:25 +01:00
Paulus Schoutsen
5f3fc6a9e3 Cleanup the min-max sensor ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-15 09:54:04 +02:00
springstan
513f03eb1f Return attribute dict directly without temporary variable v2 () 2020-10-06 16:55:16 +02:00
J. Nick Koston
d2195e2b37 Add support for reloading min_max from yaml ()
* Add support for reloading min_max from yaml

* git add
2020-08-28 10:23:19 -05:00
Thorjan Knudsvik
e6ff8d6839 Adds median to min_max component () 2020-07-18 16:18:31 -07:00
J. Nick Koston
e65235b207 Switch async_track_state_change to the faster async_track_state_change_event part 6 ()
Calling async_track_state_change_event directly is faster than async_track_state_change (see ) since async_track_state_change is a wrapper around async_track_state_change_event now
2020-07-14 22:24:27 -07:00
Thomas Hollstegge
fa55f01c8c Report entity IDs for min/max sensor platform ()
* Report entity ids for min/max sensor platform

* Use better variable names
2020-05-25 16:08:49 -04:00
springstan
ba0aaeeddb Use f-strings in integrations starting with "M" ()
* Use f-strings in integrations starting with "M"

* Format mqtt light init with black

* Fix lint error

* Fix pylint error

* Restore constants

* Update homeassistant/components/mqtt/discovery.py

* Update homeassistant/components/mqtt/discovery.py

* Update homeassistant/components/mqtt/discovery.py

* Update homeassistant/components/mqtt/discovery.py

* Format with Black
2020-03-10 23:34:54 +01:00
Ville Skyttä
e6388e186c Remove unnecessary string literal concatenations () 2020-01-02 21:17:10 +02:00
Bas Nijholt
710680d604 use isort to sort imports for components starting with 'm' () 2019-12-09 18:50:40 +05:30
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Tobias Sauerwein
048b100eea Clean up docstrings ()
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Penny Wood
f195ecca4b Consolidate all platforms that have tests ()
* 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 

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