Commit graph

11 commits

Author SHA1 Message Date
Erik Montnemery
b3fecb1c95
Update tests t-z to use async_get() instead of async_get_registry() () 2021-03-09 14:25:03 +01:00
Rene Lehfeld
2272925699
Add force_update to tasmota sensors ()
* Add force update also to non-binary sensors as e.g. POWER Measurement agerage cannot be calculated otherwise. This is the same behavior as set with the obsolete tasmota detection

* add tests in binary_sensor and test_sensor for force_update flag

* satisfy flake8

* next try for force_update test but this time on the entity object which is the correct level

* once again satisfy flake8

* one more try for a test

* fix typo

* satisfy black
2021-03-02 18:57:14 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Erik Montnemery
8cc7069323
Bump hatasmota to 0.0.29 () 2020-11-11 13:51:09 +01:00
Erik Montnemery
5694e4190c
Extend WS API result when enabling an entity ()
* Extend WS API result when enabling an entity

* Fix tests

* Fix tests

* Move updated registry entry to sub dict

* Address review comments

* Increase test coverage
2020-11-09 19:47:45 +01:00
Erik Montnemery
51b4bc547c
Bump hatasmota from 0.0.27 ()
* Adjust tests

* Add test for deprecated discovery message

* Update status sensors

* Bump hatasmota to 0.0.27

* Update tests
2020-11-08 17:11:25 +01:00
Erik Montnemery
153f05afde
Bump hatasmota to 0.0.25 () 2020-10-30 00:13:49 +01:00
Erik Montnemery
de35d58fd4
Support reloading Tasmota config entries () 2020-10-23 01:22:51 +02:00
Erik Montnemery
ec7f329807
Add support for Tasmota status sensor ()
* Add sensor attributes, remove useless test.

* Fix tests

* Rework handling of sensor attributes

* Remove unused sensor attributes

* Hide status sensors

* Bump hatasmota to 0.0.19

* Use DEVICE_CLASS_SIGNAL_STRENGTH for WiFi signal sensor

* Improve test coverage

* Fix tests
2020-10-19 22:07:31 +02:00
Erik Montnemery
515a6479a4
Bump hatasmota to 0.0.18 ()
* Bump hatasmota to 0.0.17

* Bump hatasmota to 0.0.18
2020-10-18 00:00:28 +02:00
Erik Montnemery
84cb00bb4e
Add Tasmota sensor ()
* Add Tasmota sensor

* Remove useless try-except

* Bump hatasmota to 0.0.11

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Sort dict constants

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-12 07:27:06 +02:00