Commit Graph
587 Commits
Author SHA1 Message Date
Stefan AgnerandGitHub a13ae85982 Introduce only_supervisor for @websocket_api.ws_require_user() (#61298) 2021-12-08 16:49:35 -08:00
Franck NijhofandGitHub 3471a44f92 2022! Happy New Year! (#60936) 2021-12-03 21:06:14 +01:00
707fe67c00 Move StrEnum to homeassistant.backports and move Platform to homeassistant.const (#60880)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-03 09:31:17 +01:00
Franck NijhofandGitHub c8b0a3b667 Revert "Move Platform StrEnum to const" (#60875) 2021-12-02 14:19:08 -08:00
Franck NijhofandGitHub 6e220d5d17 Move Platform StrEnum to const (#60857) 2021-12-02 22:30:52 +01:00
Franck NijhofandGitHub c28b45cd83 Migrate entity categories to StrEnum (#60720) 2021-12-01 13:54:36 +01:00
12ff5dee74 Migrate sensor device classes to StrEnum (#60654)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-01 08:09:55 +01:00
Erik MontnemeryandGitHub 07c90575ac Add comments to entity category constants (#60276) 2021-11-24 10:46:53 +01:00
rianadonandGitHub ecf00a1eae Add accumulated precipitation to unit system (#59657)
* Add accumulated precipitation to unit system

* Fix template test

* Fix typo of testing pressure instead of precipitation

* Add extra arguments so unit system test passes
2021-11-19 09:18:44 +01:00
rianadonandGitHub 7cc7bbb76d Add speed to units system (#58437)
* Use speed units in unit system

* Use more obvious conversion factor for unit system speed test

* Use wind_speed instead of speed, use m/s
2021-11-18 16:08:42 +01:00
Raman GuptaandGitHub edd068d6eb Add explicit unit mapping for zwave_js meters and sensors (#59659)
* Add explicit unit mapping for zwave_js meters and sensors

* review comment

* fix

* alternate approach
2021-11-17 12:26:32 -05:00
a3885f4fda Add frequency device class for sensor (#59700)
Co-authored-by: Hedda <rockerc.harley@gmail.com>
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-15 14:33:50 +01:00
Bram KragtenandGitHub 47b6755177 Google Cast: Use own media player app (#55524) 2021-11-10 19:40:49 +01:00
Tim RightnourandGitHub 93395f9b68 Add support for PRESSURE_CBAR (centibars) (#58762)
* Add support for PRESSURE_CBAR (centibars).  This is the standard UOM for tensiometers.

While the data could be converted into something like MBAR, and displayed
like that, the correct UOM for this type of sensor is CBAR.  Displaying
it as MBAR would be the same as displaying air pressure as feet of Hg, while
technically correct, it's hard to understand when reading.

Adding support for this UOM will fix errors in the UI(statistics) about the unit not
matching a unit of the device_class.

* Add tests for PRESSURE_CBAR
2021-11-10 09:44:05 +01:00
Ville SkyttäandGitHub 51510c542a Remove const.HTTP_* status constants (#58380) 2021-11-09 13:01:46 +01:00
rianadonandGitHub a102c425a9 Add speed conversion function & add speed to units system (#53846)
* Add speed conversion function

* Add test for speed utility functions

* Update unit system tests

* Fix incorrect unit conversions in tests

* Fix some test errors

* Calculate speed units from smaller set of constants

* Fix typo in speed test

* Use pytest.approx for checking floating point values

* Change other instance of speeds needing to be pytest.approx

* Revert changes to unit system

* Fix oopsie in defining in/day and in/hr

* Parametrize test

* Add comments describing calculations & remove duplicate test
2021-11-09 08:12:28 +01:00
Erik MontnemeryandGitHub a0a8b9db26 Add entity category 'system' (#58595)
* Add entity category 'hidden'

* Update cloud

* Update Google assistant

* Update Alexa

* Fix tests

* Add ENTITY_CATEGORIES constant

* Rename ENTITY_CATEGORY_HIDDEN to ENTITY_CATEGORY_SYSTEM

* Correct import in motioneye
2021-10-28 14:36:41 +02:00
Franck NijhofandGitHub 8d05813c97 Bump version to 2021.12.0dev0 (#58546) 2021-10-27 23:08:34 +02:00
d7c41c0b05 Use DeviceInfo in asuswrt (#58399)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-25 14:12:49 +02:00
ef48238ac3 Adjust DeviceInfo registration on zwave_js (#58391)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-25 12:05:45 +02:00
9ae7f0ecd7 Add new attribute constants for DeviceInfo registration (#58289)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-23 21:01:34 +02:00
0b302ab141 Use DeviceInfo on zwave (#58183)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 11:36:40 +02:00
Erik MontnemeryandGitHub bb9053e93d Add MWh as an energy unit (#58034) 2021-10-19 11:08:44 -07:00
1eebe45154 Add support for entity categories to MQTT entities (#57656)
* Add support for entity categories to MQTT entities

* Improve test

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Update homeassistant/components/mqtt/mixins.py

Co-authored-by: Paul Monigatti <paulmonigatti@users.noreply.github.com>

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Paul Monigatti <paulmonigatti@users.noreply.github.com>
2021-10-15 14:28:30 +02:00
Erik MontnemeryandGitHub 4b3d423767 Add config and diagnostic entities (#57528)
* Add config entity concept

* Rename is_config_entity to entity_category

* Add test

* Add 'diagnostic' entity category
2021-10-14 10:04:26 +02:00
Paulus SchoutsenandGitHub b024d88b36 Deprecate Python 3.8 (#57079) 2021-10-05 08:58:20 +02:00
Glenn WatersandGitHub e4f15c42e0 Add kPa as a pressure unit (#56885) 2021-10-01 08:08:04 -07:00
Franck NijhofandGitHub 11f127c1a3 Bump version to 2021.11.0dev0 (#56835) 2021-09-30 19:32:25 +02:00
Ville SkyttäandGitHub 0684f8bddf Add date device class (#55887)
* Add date device class

https://github.com/home-assistant/architecture/discussions/610

* Add date device class to sensors device classes list
2021-09-07 16:46:12 +02:00
Franck NijhofandGitHub 06a30c882f Bump version to 2021.10.0dev0 (#55227) 2021-08-25 23:19:14 +02:00
Jc2kandGitHub 2dd4de060b Add device class for volatile organic compounds (#55050) 2021-08-23 11:14:43 +02:00
Jc2kandGitHub de0460de61 Add device classes that were part of deprecated air quality entity (#54075) 2021-08-16 23:33:28 +02:00
e23750b2a4 Add device class gas and enable statistics for it (#54110)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-08-11 09:58:19 -07:00
Richard T. SchaeferandGitHub 3184f0697f Add Save Persistent States service (#53881) 2021-08-10 00:38:56 +02:00
Franck NijhofandGitHub a8536e3ce5 Bump version to 2021.9.0dev0 (#53638) 2021-07-28 22:56:34 +02:00
Marc MuellerandGitHub fd2f15b7c7 Add new unit constants (#53258)
* Add new unit constant - MHz

* Add new unit constants - precipitation (in, in/h)
2021-07-21 12:14:47 -06:00
Marc MuellerandGitHub 074d762664 Rename and reorganize electric unit constants (#53243) 2021-07-20 20:06:23 +02:00
J. Nick KostonandGitHub 9b705ad6df Update lock entity to support locking, unlocking, jammed (#51455) 2021-07-20 18:12:56 +02:00
Marc MuellerandGitHub c578541a82 Add new electrical unit constants (mV + mA) (#53158) 2021-07-20 15:57:11 +02:00
Marc MuellerandGitHub a56485a8c5 Revert new unit types (#53226) 2021-07-20 14:13:51 +02:00
Marc MuellerandGitHub c35b5a1c64 Add sound pressure unit constants (dB + dBa) (#53159) 2021-07-19 06:54:38 -07:00
Marc MuellerandGitHub 71a8ae3016 Add new unit types for better type checking (#53124)
* Add new unit types
* Update helper functions
* Update components
* Update lcn climate
2021-07-18 14:43:47 +02:00
312531988a Vacation Mode on Alarm Panels (#45980)
Co-authored-by: Nathan Tilley <nathan@tilley.xyz>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Khole Jones <ktech6@outlook.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-07-01 17:26:32 +02:00
Franck NijhofandGitHub 1862cdf52e Bump version to 2021.8.0dev0 (#52346) 2021-06-30 18:06:33 +02:00
Farzad NoorianandGitHub fbf85fd86b Add OAuth 2.0 Bearer Token authentication to send_file for telegram_bot (#46567) 2021-06-28 20:43:23 +02:00
Raman GuptaandGitHub 23339cff95 Add new climacell sensors (#52079)
* Add new climacell sensors

* lint

* add new unit constants
2021-06-27 15:03:20 -04:00
Erik MontnemeryandGitHub a374e24843 Add monetary sensor device class (#52087)
* Add total_cost sensor device class

* Change to DEVICE_CLASS_MONETARY
2021-06-23 15:32:25 +02:00
Franck NijhofandGitHub d829df332d Bump version to 2021.7.0dev0 (#51116) 2021-05-26 20:18:29 +02:00
Raman GuptaandGitHub 58e37435b3 Make more max lengths constants and add additional MaxLengthExceeded checks (#50337)
* Add more MaxLengthExceeded checks

* remove some validations to reduce performance impact

* check length of generated entity ID

* dont check entity ID twice and use single context id length constant

* fix test

* add missing test
2021-05-25 19:58:01 +02:00
Maciej BieniekandGitHub 7573adda7f Add Final type for all core constants (#50858)
* Add Final type for all constants

* Add Final for one missing const

* Suggested change
2021-05-19 19:31:38 +03:00