Commit graph

8966 commits

Author SHA1 Message Date
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
Franck Nijhof
1c7891fbee
Remove deprecated YAML configuration from Growatt () 2021-08-09 14:54:42 +02:00
Raman Gupta
c79ee53ab1
Use dict for zwave_js siren.available_tones ()
* Use dict for zwave_js siren.available_tones

* update siren.turn_on service description
2021-08-09 13:29:17 +02:00
Chris
3742333a89
Remove zwave_js transition on individual color channels () 2021-08-09 13:21:41 +02:00
jan iversen
9b7b787fe4
Remove icon where device_class is defined. () 2021-08-09 13:13:11 +02:00
jan iversen
6ea50823c1
Use SensorEntityDescription for arlo ()
* Use SensorEntityDescription.
2021-08-09 12:16:35 +02:00
jan iversen
e7f0768ae6
Convert base_config_test in modbus to existing Pytest.fixture ()
* Convert base_config_test to pytest.fixture.
2021-08-09 12:11:54 +02:00
Martin Hjelmare
a1abd4f0d6
Fix external internal url core check () 2021-08-09 10:52:14 +02:00
Paulus Schoutsen
952d11cb03
Ensure internal/external URL have no path ()
* Ensure internal/external URL have no path

* Fix comment typo

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-09 09:38:09 +02:00
Raman Gupta
2e903c92c4
Add siren support for available tones provided as a dict ()
* Add siren support for available tones provided as a dict

* remove paranthesis

* hopefully make logic even easier to read

* drop last parenthesis
2021-08-09 00:41:51 -04:00
Paulus Schoutsen
557cc792e9
Fix SQLAlchemy test warnings () 2021-08-08 20:33:47 -07:00
Allen Porter
160bd74bae
Update DeviceInfo static types ()
* Update nest static types from aditional PR feedback

Update nest and device helper static types based on post-merge discussion in PR 

* Remove unused type: ignore in synology

* Remove check for None device type

Remove check for None device type in order to reduce untested code as this is
a case not allowed by the nest python library.
2021-08-08 19:24:36 -07:00
Joakim Sørensen
89bb95b0be
Add re-authentication to Uptime Robot ()
* Add reauthentication to Uptime Robot

* Fix en strings

* format

* Fix docstring

* Remove unused patch

* Handle no existing entry

* Handle account mismatch during reauthentication

* Add test to validate reauth is triggered properly

* Test reauth after setup

* Adjust tests

* Add full context for reauth init
2021-08-08 15:41:05 +02:00
rjulius23
7d29eb282b
Add enumerate to builtins in python_script component () 2021-08-07 22:02:20 -07:00
Dermot Duffy
75726a2695
Don't block motionEye setup on NoURLAvailableError ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-08-07 21:29:52 -07:00
jan iversen
2232915ea8
Add parameter to delay sending of requests in modbus () 2021-08-07 21:10:08 -07:00
Niccolo Zapponi
483a4535c8
Handle software version being None when setting up HomeKit accessories ()
* Convert all HomeKit service info to string prior to checking for max length

* Added check for None software version

* Added test case for numeric version number

* Update tests/components/homekit/test_accessories.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Fix style & none version test

* Fix test

* revert other change since it should be covered by the format_sw_version fix

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-06 09:34:42 -07:00
Tom Brien
d842fc288f
Ignore Coinbase vault wallets ()
* Exclude vault balances

* Update option flow validation

* Update test name

* Add missed check

* Fix dangerous default
2021-08-06 09:34:21 -07:00
Raj Laud
2db278a7a7
Fix Squeezebox dhcp discovery ()
* Fix Squeezebox dhcp discovery and allow ignore

* Test ignoring known Squeezebox players

* Fix linter errors
2021-08-06 09:29:52 -07:00
J. Nick Koston
5f790f6bd9
Fetch interface index from network integration instead of socket.if_nametoindex in zeroconf () 2021-08-06 09:15:35 -07:00
Matthias Alphart
ab34ef475e
Test KNX binary sensor ()
* test binary_sensor

* test binary_sensor with reset_after
2021-08-05 23:33:20 -05:00
Matthias Alphart
8ead20a76b
Test knx sensor () 2021-08-05 23:26:02 -05:00
J. Nick Koston
adc9f75493
Increase time before scene and script HomeKit entities are reset () 2021-08-05 19:24:24 -07:00
Paulus Schoutsen
8377b557da
Packages to support config platforms () 2021-08-05 13:11:01 -07:00