Commit Graph

96 Commits

Author SHA1 Message Date
Ville Skyttä
a396619251 Use disabled_by constants (#49584)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-23 09:56:42 +02:00
Mick Vleeshouwer
461e766a93 Add device class CO2 to various integrations (#47676)
* Add device class CO2 to Fibaro

* Add device class CO2 to Awair

* Add device class CO2 to Tasmota

* Add device class CO2 to Netatmo

* Add device class CO2 to Ambient Station

* Update Tasmota tests

* Remove icon
2021-03-10 12:52:55 +01:00
Erik Montnemery
b3fecb1c95 Update tests t-z to use async_get() instead of async_get_registry() (#47655) 2021-03-09 14:25:03 +01:00
Rene Lehfeld
2272925699 Add force_update to tasmota sensors (#47052)
* 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
Ville Skyttä
dc880118a4 Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
J. Nick Koston
bd87047ff2 Update tasmota to use new fan entity model (#45877) 2021-02-22 21:27:21 -06:00
Erik Montnemery
c8e04ee960 Bump hatasmota to 0.2.9 (#46561) 2021-02-15 12:16:28 +01:00
Erik Montnemery
5711d61b38 Bump hatasmota to 0.2.7 (#45625) 2021-01-28 08:55:22 +01:00
Erik Montnemery
852136ccfe Bump hatasmota to 0.2.5 (#45297) 2021-01-18 22:26:33 +01:00
Franck Nijhof
65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Erik Montnemery
ed576edde7 Fix Tasmota device triggers (#44574) 2020-12-28 14:41:39 +01:00
Erik Montnemery
7084d6c650 Address old review comments of Tasmota fan (#44112)
* Address review comments of Tasmota fan

* Address review comment
2020-12-10 22:17:58 +01:00
Erik Montnemery
916ff88774 Bump hatasmota to 0.1.4 (#43912) 2020-12-04 03:16:37 +01:00
Erik Montnemery
5d7d2dee2a Bump hatasmota to 0.1.2 (#43719) 2020-11-28 10:18:06 -10:00
Erik Montnemery
6706ea36de Add Tasmota cover (#43368)
* Add Tasmota cover

* Update tests

* Bump hatasmota to 0.1.0
2020-11-25 18:52:09 +01:00
Erik Montnemery
314497d013 Add Tasmota fan (#43353)
* Add Tasmota fan

* Bump hatasmota to 0.1.0

* Apply suggestions from code review
2020-11-25 17:40:32 +01:00
Paulus Schoutsen
b3be708db6 Add default config if not there (#43321)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Erik Montnemery
d493f18e50 Bump hatasmota to 0.1.1 (#43608) 2020-11-24 19:55:15 +01:00
Erik Montnemery
0bf9734af1 Bump hatasmota to 0.0.32 (#43360) 2020-11-19 09:07:35 +01:00
Erik Montnemery
14aba1f9de Bump hatasmota to 0.0.31 (#43319) 2020-11-17 18:02:41 +01:00
Erik Montnemery
8cc7069323 Bump hatasmota to 0.0.29 (#43013) 2020-11-11 13:51:09 +01:00
Erik Montnemery
5694e4190c Extend WS API result when enabling an entity (#42667)
* 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 (#42802)
* 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
56ee99372d Force color or white mode exclusivity for Tasmota lights (#42772) 2020-11-04 10:03:32 +01:00
Erik Montnemery
62b5279d86 Add WS command to remove a Tasmota device (#42266) 2020-10-30 09:56:41 +01:00
Erik Montnemery
153f05afde Bump hatasmota to 0.0.25 (#42605) 2020-10-30 00:13:49 +01:00
Erik Montnemery
8800b83283 Fix race in Tasmota discovery (#42492) 2020-10-27 23:24:54 +01:00
Erik Montnemery
f0b676607d Bump hatasmota to 0.0.24 (#42472) 2020-10-27 23:01:13 +01:00
Erik Montnemery
029963dfc2 Bump hatasmota to 0.0.23 (#42394) 2020-10-26 14:58:36 +01:00
Erik Montnemery
bfb603fe78 Fix reconfiguring of Tasmota lights (#42288) 2020-10-24 14:31:08 +02:00
Erik Montnemery
15f46392d2 Fix Tasmota CT light (#42287) 2020-10-24 14:29:26 +02:00
Erik Montnemery
88231aa541 Fix Tasmota relay acting as on/off light (#42259) 2020-10-23 17:40:43 +02:00
Paulus Schoutsen
5dac3883b0 Stub light profiles (#42232) 2020-10-23 16:28:21 +02:00
Erik Montnemery
de35d58fd4 Support reloading Tasmota config entries (#42097) 2020-10-23 01:22:51 +02:00
Erik Montnemery
ec7f329807 Add support for Tasmota status sensor (#41782)
* 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 (#42000)
* Bump hatasmota to 0.0.17

* Bump hatasmota to 0.0.18
2020-10-18 00:00:28 +02:00
Erik Montnemery
9e9f841f35 Add Tasmota device trigger (#41590)
* Add Tasmota device trigger

* Correct import

* Remove useless try-except

* Remove commented out code

* Align with hatasmota 0.0.14

* Update according to review comments
2020-10-16 08:16:07 +02:00
Erik Montnemery
766a0032c9 Bump hatasmota to 0.0.16 (#41902) 2020-10-15 21:14:42 +02:00
Erik Montnemery
042ce1cb92 Add Tasmota light (#41485) 2020-10-14 17:47:13 +02:00
Erik Montnemery
cd21786536 Bump hatasmota to 0.0.13 (#41705)
* Bump hatasmota to 0.0.13

* Fix tests
2020-10-12 13:09:17 +02:00
Erik Montnemery
84cb00bb4e Add Tasmota sensor (#41483)
* 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
Erik Montnemery
35287828bc Poll state when Tasmota device becomes available (#41401) 2020-10-08 11:17:23 +02:00
Erik Montnemery
343e5d64b8 Add MQTT integration discovery (#41332)
* Add MQTT integration discovery

* Add script/hassfest/mqtt.py

* Unsubscribe if config entry exists

* Add homeassistant/generated/mqtt.py

* Fix bad loop

* Improve tests

* Improve tests

* Apply suggestions from code review

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>

* Prevent initiating multiple config flows

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
2020-10-07 18:30:51 +02:00
Erik Montnemery
6e84f91762 Add Tasmota binary sensor (#41380) 2020-10-07 14:41:30 +02:00
Erik Montnemery
42fb0e9545 Bump hatasmota to 0.0.10, minor refactor of discovery (#41331)
* Bump hatasmota to 0.0.10, minor refactor of discovery

* Update tests

* Add missing docstrings
2020-10-06 22:32:36 +02:00
Erik Montnemery
06e9489fc7 Add Tasmota integration (#39624)
* Add Tasmota integration

* Refactor

* Add tests, small improvements

* isort

* Attempt to fix tests failing with Python 3.8

* Revert "Attempt to fix tests failing with Python 3.8"

This reverts commit 11454f8a00136f068ea27204183fa3e62f3cd263.

* Fix tests failing with Python 3.8

* Cleanup tests

* Address review comments

* Address review comments

* Address review comments

* Use MAC address for device identification

* Bump hatasmota

* Bump hatasmota

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix indentation

* Remove preparation for device remove WS API

* Address review comments

* Remove useless try-except

* Tweak

* Improve tests

* Tweak

* Address review comments

* Correct test

* Update manifest.json

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-06 14:51:58 +02:00