Commit graph

21 commits

Author SHA1 Message Date
Mappenhei
9bdb713408
Add Humidity device class to LaCross humidity sensor (#104814) 2023-11-30 18:45:52 +01:00
Marc Mueller
86792fcc2f
Update mypy to 1.4.0 (#94987) 2023-06-21 16:12:51 +02:00
Marc Mueller
e717f56113
Add lacrosse to strict-typing (#86527)
Add lacrosse to strict-typing
2023-01-24 14:27:01 +01:00
epenet
a6ddac9004
Use UnitOfTemperature in integrations (i-m) (#84307) 2022-12-20 18:30:46 +01:00
Jan-Philipp Litza
2a45738d97
Add state_class MEASUREMENT to lacrosse temperature and humidity sensors (#79379) 2022-09-30 23:37:50 +03:00
epenet
506a0b526b
Add setup type hints [l] (#63450)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 13:30:37 +01:00
epenet
ef15b159c1
Use SensorDeviceClass in lacrosse (#61879)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-15 14:48:19 +01:00
Erik Montnemery
2720ba2753
Move temperature conversions to sensor base class (4/8) (#54472)
* Move temperature conversions to entity base class (4/8)

* Fix litterrobot sensor

* Fix tests
2021-08-11 21:17:47 +02:00
Erik Montnemery
d1f3c20079
Set device_class on temperature sensors L-Q (#52919) 2021-07-12 20:41:45 +02:00
Franck Nijhof
d1f0ec8db8
Small tweaks to LaCrosse (#51249) 2021-05-29 23:08:25 +03:00
Erik Montnemery
fdf97eaca3
Migrate integrations i-m to extend SensorEntity (#48213) 2021-03-22 19:59:03 +01:00
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() (#47758) 2021-03-11 20:11:25 +01:00
Jan-Philipp Litza
4018d0a152
Correctly close lacrosse on homeassistant stop (#47555)
Since lacrosse.close() takes no arguments, but was directly added as a
listener to EVENT_HOMEASSISTANT_STOP, the following occured on shutdown:

Traceback (most recent call last):
  File "/usr/lib/python/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
TypeError: close() takes 1 positional argument but 2 were given
2021-03-07 13:53:48 +01:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state (#33508)
* Directly call async_write_ha_state

* Address comments

* Fix tests
2020-04-01 14:19:51 -07:00
springstan
f1a0ca7cd3
Add and use percentage constant (#32094)
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
springstan
2df189b58e Move imports to top for lacrosse (#29405) 2019-12-04 10:49:55 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
cgtobi
2c07bfb9e0 Remove dependencies and requirements (#23024)
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Tobias Sauerwein
048b100eea Clean up docstrings (#22679)
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests (#22096)
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00
Renamed from homeassistant/components/sensor/lacrosse.py (Browse further)