Commit graph

8989 commits

Author SHA1 Message Date
LonePurpleWolf
35f563e23e
Airtouch4 integration ()
* airtouch 4 climate control integration

* enhance tests for airtouch. Fix linting issues

* Fix tests

* rework tests

* fix latest qa issues

* Clean up

* add already_configured message

* Use common string

* further qa fixes

* simplify airtouch4 domain storage

Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-17 17:29:20 +02:00
Jc2k
ea8061469c
Deprecate homekit_controller's air quality entity in favor of separate sensor entities () 2021-08-17 09:29:52 -05:00
Franck Nijhof
9dab920d01
DSMR: Remove icon from sensors with gas device class () 2021-08-17 14:26:02 +02:00
Raman Gupta
013b998974
Relax zwave_js lock discovery rules to cover more use cases () 2021-08-17 13:34:00 +02:00
Maciej Bieniek
4f3d1c5e12
Use PM1, PM25 and PM10 device classes in Nettigo Air Monitor integration () 2021-08-17 10:49:22 +02:00
Erik Montnemery
0abcfb42b3
Remove last_reset attribute from FritzBoxEnergySensor () 2021-08-16 23:57:59 +02:00
Jc2k
de0460de61
Add device classes that were part of deprecated air quality entity () 2021-08-16 23:33:28 +02:00
J. Nick Koston
5e51f57f02
Convert nmap_tracker to be a config flow () 2021-08-16 15:19:32 -05:00
ehendrix23
f40c672cd2
Add light platform to MyQ ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-16 14:52:53 -05:00
Raman Gupta
a41ee9e870
Create zwave-js select platform and discover additional siren values ()
* Create zwave-js select platform and add siren values to number and select platforms

* use constants while we wait for lib release

* comments

* rename stuff in tests to prepare for protection CC PR

* Switch to 0-1 range for number entity

* Update homeassistant/components/zwave_js/number.py

Co-authored-by: kpine <keith.pine@gmail.com>

* Change step

* Switch to ToneID

* Better error handling

* Add test for coerage

Co-authored-by: kpine <keith.pine@gmail.com>
2021-08-16 13:36:20 -04:00
Erik Montnemery
35389a6d28
Remove last_reset attribute from dsmr sensors () 2021-08-16 18:35:50 +02:00
Raman Gupta
61ab2b0c60
Use zwave_js.number platform for Basic CC values ()
* Use zwave_js.number platform for some Basic CC values

* Remove Basic CC sensor discovery schema

* update comment

* update comment
2021-08-16 12:30:52 -04:00
Adam Bogdał
3e93215a1f
Fix event type names for non-specified Traccar events ()
* Fix event type name

* Extend list of types only when all_events is specified

* Remove flake8 warnings
2021-08-16 15:49:12 +02:00
epenet
a204d7f807
Renault code quality improvements () 2021-08-16 13:49:04 +02:00
Daniel Hjelseth Høyer
d11c58dac8
Improve Tractive ()
* Tractive, code improve

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tractive, code improve

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tractive, code improve

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Update homeassistant/components/tractive/config_flow.py

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

* Update homeassistant/components/tractive/const.py

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

* Tractive, comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Update homeassistant/components/tractive/config_flow.py

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

* Update homeassistant/components/tractive/config_flow.py

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

* Tractive

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Reauth

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Reauth

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* add tests

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* add tests

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-16 12:56:10 +02:00
epenet
75275254f9
Renault test optimisation ()
* Cleanup tests

* Use a MockConfigEntry

* Don't set up the integration for duplicate config entry testing
2021-08-16 12:52:58 +02:00
Allen Porter
094f7d38ad
Use buffer at stream start with unsupported audio ()
Add a test that reproduces the issue where resetting the iterator
drops the already read packets. Fix a bug in replace_underlying_iterator
because checking the self._next function turns out not to work since
it points to a bound method so the "is not" check fails.
2021-08-15 21:02:37 -07:00
Bram Kragten
eb278834de
Add gas support to energy ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-08-13 10:39:16 -07:00
Steven Looman
2c1728022d
Use ssdp callbacks in upnp () 2021-08-13 11:13:25 -05:00
Erik Montnemery
029873a088
Add support for total and total_increasing sensor state classes ()
* Add support for amount and meter sensor state classes

* Ignore last_reset for STATE_CLASS_METER sensors

* Update tests

* Rename STATE_CLASS_METER to STATE_CLASS_AMOUNT_INCREASING

* Rename STATE_CLASS_AMOUNT to STATE_CLASS_TOTAL

* Fix typo

* Log warning if last_reset set together with state_class measurement

* Fix warning message
2021-08-13 12:35:23 +02:00
Erik Montnemery
e558b3463e
Move temperature conversions to sensor base class (6/8) ()
* Move temperature conversions to entity base class (6/8)

* Fix tests
2021-08-12 17:40:55 +02:00
Erik Montnemery
6de6a5dc14
Move temperature conversions to sensor base class (3/8) ()
* Move temperature conversions to entity base class (3/8)

* Fix FritzBox sensor

* Fix tests
2021-08-12 14:23:56 +02:00
Erik Montnemery
2720ba2753
Move temperature conversions to sensor base class (4/8) ()
* Move temperature conversions to entity base class (4/8)

* Fix litterrobot sensor

* Fix tests
2021-08-11 21:17:47 +02:00
Erik Montnemery
ae507aeed1
Move temperature conversions to sensor base class (8/8) ()
* Move temperature conversions to entity base class (8/8)

* Fix wallbox sensor

* Fix tests
2021-08-11 21:17:16 +02:00
Bram Kragten
e23750b2a4
Add device class gas and enable statistics for it ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-08-11 09:58:19 -07:00
Bram Kragten
f020d65416
Add battery support to energy () 2021-08-11 09:49:56 -07:00
Martin Hjelmare
028a3d3e53
Complete mysensors sensor coverage () 2021-08-11 17:19:02 +02:00
J. Nick Koston
1e14b3a0ac
Ensure camera handles non-jpeg image sources correctly () 2021-08-11 08:12:46 -07:00
jan iversen
4ef9269790
Replace prepare_service_call with a simpler fixture in modbus ()
* Convert prepare_service_call to a fixture.
2021-08-11 12:42:28 +02:00
Joakim Sørensen
2f5c3c08ef
Use monitor name for uptimerobot device registry () 2021-08-11 11:27:41 +02:00
jan iversen
2d669a4613
Remove legacy code. () 2021-08-11 11:07:04 +02:00
Erik Montnemery
4e07ab1b32
Move temperature conversions to sensor base class (1/8) ()
* Move temperature conversions to entity base class (1/8)

* Update integrations a-c

* Leave old temperature conversion until all integrations are migrated

* tweak

* Use contextlib.suppress

* Remove the MeasurableUnitEntity mixin

* Address comments, add tests

* Fix f-string

* Drop deprecation warning from base entity class

* Update with _attr-shorthand

* Fix rebase mistakes

* Fix additional rebase mistakes

* Only report temperature conversion once

* Fix additional rebase mistakes

* Format homeassistant/components/bbox/sensor.py

* Fix check for overidden _attr_state

* Remove test workarounds from implementation

* Remove useless None-check

* Tweaks

* Migrate new sensors a-c

* Update climacell

* Push deprecation of temperature conversion forward

* Override __repr__ in SensorEntity

* Include native_value in SensorEntity attributes

* Pylint

* Black

* Black

* Fix rebase mistakes

* black

* Fix rebase mistakes

* Revert changes in august/sensor.py

* Revert handling of unit converted restored state

* Apply code review suggestion

* Fix arlo test
2021-08-11 10:45:05 +02:00
J. Nick Koston
4d40d95848
Add support for width and height to ffmpeg based camera snapshots () 2021-08-10 20:31:11 -05:00
J. Nick Koston
d0b11568cc
Ensure HomeKit passes min/max mireds as ints () 2021-08-10 20:28:01 -05:00
J. Nick Koston
e99576c094
Pass width and height when requesting camera snapshot () 2021-08-10 19:33:06 -05:00
J. Nick Koston
4ae6435a64
Avoid increasing yeelight rate limit when the state is already set () 2021-08-10 15:17:49 -07:00
J. Nick Koston
4da451fcf7
Improve HomeKit Color with Color Temp implementation () 2021-08-10 15:16:51 -07:00
J. Nick Koston
4bde4504ec
Add api to device_automation to return all matching devices () 2021-08-10 14:21:34 -05:00
Dror Eiger
7e211965e4
Update the Qubino Flush Shutter fixture () 2021-08-10 10:31:55 -04:00
Joakim Sørensen
d1ea38e8f0
Add 100% test coverage for Uptime Robot ()
* Add 100% test coverage for Uptime Robot

* Update tests/components/uptimerobot/test_binary_sensor.py

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

* Add more typehints

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-10 16:29:51 +02:00
Joakim Sørensen
cf8f27bb44
Adjust version tests ()
* Adjust version tests

* patch local import
2021-08-10 15:03:34 +02:00
Joakim Sørensen
8cb3a485e0
Fix Canary sensor state () 2021-08-10 09:19:28 +02:00
Paulus Schoutsen
38a7bdbcf3
Do not process forwarded for headers for cloud requests () 2021-08-10 01:45:56 +02:00
Joakim Sørensen
d80da944a3
Version sensor entity cleanup ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-08-10 01:24:18 +02:00
J. Nick Koston
25f3cdde50
Add powerwall import and export sensors ()
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-08-09 16:03:22 -07:00
Richard T. Schaefer
3184f0697f
Add Save Persistent States service () 2021-08-10 00:38:56 +02:00
J. Nick Koston
74a30af79b
Always set interfaces explicitly when IPv6 is present () 2021-08-09 21:13:55 +02:00
starkillerOG
a23da30c29
Yeelight local push updates ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-09 13:33:34 -05:00
Diogo Gomes
b88f0adbe9
Restores unit_of_measurement () 2021-08-09 19:48:01 +02:00
Chris
188919f079
Clean up zwave_js RGB code () 2021-08-09 18:45:12 +02:00