Commit Graph

132 Commits (72556e5eaa21442f6e74a155d5a8729091cf2934)

Author SHA1 Message Date
Michael 83989d7b40
Use relative imports [L-R] (#61575) 2021-12-13 00:24:46 +01:00
epenet 54d55fdf88
Use list comprehension in onewire sensor descriptions (#61157)
* Add 0-3 range to constants

* Use list comprehension in sensor definitions

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-07 23:06:27 -06:00
Tim Rightnour 489d85d862
Add Onewire diagnostic and config switches and binary_sensors (#59309)
* Onewire: Add diagnostic and config switches and binary_sensors
This commit adds diagnostic and config switches and binary_sensors to
the HobbyBoards devices.  With these, the user will be able to configure
those devices, without having to run owwrite/owread commands outside
of HA.

* Address review from @epenet

* Add HB_HUB to DEVICE_SUPPORT_OWSERVER

* Device class and entity category enums

* Fixup merge breakage

* Remove duplicate lines
2021-12-07 13:59:43 +01:00
GitHub Action 68ca0a05c8 [ci skip] Translation update 2021-12-04 00:13:16 +00:00
epenet 231d434b76
Use new Platform enum in Onewire (#60904)
* Use new Platform enum in Onewire

* Use Platform in tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:25:22 -08:00
epenet adf2fa5664
Use EntityCategory enum in Onewire (#60907)
* Use EntityCategory enum in Onewire

* Add checks for the entity_category

* Fix typo

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:20:00 -08:00
epenet 5c992ec2cc
Remove cleanup_registry from onewire (#60546)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 18:38:07 +01:00
epenet 3eba575fde
Use state class enum for Onewire (#60770)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 17:42:08 +01:00
epenet 7363033ada
Use device class enum in Onewire (#60766)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 17:33:26 +01:00
GitHub Action 96313bbbe0 [ci skip] Translation update 2021-11-27 00:12:17 +00:00
GitHub Action 78b47019f9 [ci skip] Translation update 2021-11-26 00:12:49 +00:00
GitHub Action d3c020325b [ci skip] Translation update 2021-11-25 00:13:33 +00:00
GitHub Action 9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
GitHub Action 29dc9de08f [ci skip] Translation update 2021-11-19 00:14:01 +00:00
JumpmanJunior d9f3cff606
Fix IAD and vis for DS2438 1wire sensor (#59126)
* Fix vis and IAD for DS2438

* Fix IAD and vis for DS2438

* Fix IAD and vis for DS2438

* Fix IAD and vis for DS2438

* Fix IAD and vis for DS2438

* Fix IAD and vis for DS2438

* Fix IAD and vis for DS2438

* Fix IAD and vis for DS2438

* Fix IAD and vis for DS2438
2021-11-14 17:30:03 +01:00
GitHub Action fc539da42b [ci skip] Translation update 2021-11-14 00:12:48 +00:00
Tim Rightnour 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
GitHub Action 86b12af3dc [ci skip] Translation update 2021-11-10 00:17:39 +00:00
epenet 7e81c6a591
Move onewire device compatibility checks (#59338)
* Move device compatibility checks to onewirehub

* Add test for dtoverlay warning

* Add tests for unknown device warning

* Move dtoverlay error

* Empty commit to retrigger tests

* Update description

* Patch asyncio.sleep to speed up the tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-09 18:30:05 +01:00
GitHub Action e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
epenet b85217c62e
Adjust onewire device model (#58516)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-27 12:19:55 -05:00
epenet 8017a1e141
Adjust onewire device manufacturer (#58515)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-27 12:02:07 +02:00
epenet 51a10f88de
Use DeviceInfo on components with via_device (#58222)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 17:04:25 +02:00
epenet c00a5fad8f
Cleanup device registration in Onewire (#58101)
* Add checks for device registry

* Move registry checks to init.py

* Run device registry check on disabled devices

* Empty commit for testing

* Register devices during initialisation

* Adjust tests accordingly

* Add via_device to device info

* Adjust access to device registry

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 11:45:40 +02:00
Marc Mueller 1e98761f30
Use assignment expressions 15 (#57961) 2021-10-18 14:01:23 +02:00
GitHub Action c76e15149c [ci skip] Translation update 2021-10-17 00:12:27 +00:00
Steffen Ronalter 49b07224bf
Add onewire support for DS2413 (#55921) 2021-10-15 08:23:26 +02:00
GitHub Action f42c2f5170 [ci skip] Translation update 2021-10-02 12:59:05 +00:00
epenet 5ccc3c17d9
Use list comprehension in onewire entity descriptions (#56168)
* Use list comprehension in onewire binary sensors

* Use list comprehension in onewire switches
2021-09-13 13:46:21 +02:00
epenet ccaf0d5c75
Use EntityDescription - onewire (#55003) 2021-08-24 10:37:59 +02:00
Erik Montnemery 103e21c278
Move temperature conversions to sensor base class (5/8) (#54475) 2021-08-12 13:26:17 +02:00
epenet bb7236fd04
Use constants for device_info in Onewire integration (#53724) 2021-07-30 13:35:49 +02:00
epenet 87dab02ce6
Remove YAML configuration from onewire (#53728) 2021-07-29 22:12:00 -07:00
Marc Mueller 074d762664
Rename and reorganize electric unit constants (#53243) 2021-07-20 20:06:23 +02:00
Ville Skyttä 470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
GitHub Action 531733da7b [ci skip] Translation update 2021-07-19 00:09:50 +00:00
GitHub Action 330f713e43 [ci skip] Translation update 2021-06-08 00:21:17 +00:00
GitHub Action c81df50191 [ci skip] Translation update 2021-06-06 00:19:43 +00:00
tkdrob c0656878db
Normalize async_setup_entry (#51161) 2021-05-27 15:56:20 +02:00
epenet d7c0da90c5
Add support for DS2405 (#50148) 2021-05-20 17:02:25 +02:00
Maciej Bieniek f212049fc2
Add constructor return type in integrations O-S (#50896) 2021-05-20 15:58:17 +02:00
Fredrik Tuomas a65d3868cb
Add support for EDS0066 (#50035)
* Add support for EDS0066

* Added a test

* Corrected entity_ids

* Added missing part of sensor entity id

* Add type hint

* Update tests/components/onewire/const.py

Co-authored-by: jan iversen <jancasacondor@gmail.com>

* Update tests/components/onewire/const.py

Co-authored-by: jan iversen <jancasacondor@gmail.com>

* Revert "Update tests/components/onewire/const.py"

This reverts commit 4a01b89868.

* Revert "Update tests/components/onewire/const.py"

This reverts commit 151eb9c0d3.

Co-authored-by: jan iversen <jancasacondor@gmail.com>
2021-05-20 15:39:34 +02:00
J. Nick Koston 34c84a6bbb
Reduce boilerplate to abort for matching config entries (#50186)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-11 22:00:12 +02:00
epenet d6c99a3db9
Enable strict type checks for onewire (#50422) 2021-05-11 17:28:17 +02:00
Ville Skyttä 44a790ab47
Entity.device_info typing fixes (#49974) 2021-05-10 22:11:51 -07:00
epenet dc29087416
Deprecate onewire YAML configuration (#50151) 2021-05-07 15:46:23 +02:00
epenet 5d5122c2a4
Fix unique_id issue on onewire config entries (#50161) 2021-05-07 14:21:03 +02:00
epenet 5dd59415a8
Drop OWFS support in onewire (#50121) 2021-05-05 21:14:20 +02:00
Milan Meulemans 29d72714f3
Replace dict with DeviceInfo (#49950)
* Replace dict with DeviceInfo

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-02 00:37:19 +02:00
Franck Nijhof a6206b2819
Clean up connection classes in integrations M-O (#49892) 2021-04-30 21:03:37 -10:00