Commit graph

65494 commits

Author SHA1 Message Date
Maikel Punie
5f5c012b0a
Duotecno code-cleanup (#98675)
* small code cleanup, use a wrapper for the commands

* Better decorator naming

* update the error information
2023-08-19 21:34:07 +02:00
hahn-th
f020d17dd8
Support Eco Mode Preset in Climates (#98359)
* Fix #86145

* Add missing test coverage

* Add tests for state
2023-08-19 21:32:20 +02:00
Charles Garwood
91965a74d8
Enphase remove operating (#98682) 2023-08-19 12:30:12 -05:00
Benjamin Paul [MSFT]
5965918c86
Add Fan Speed number entity to Nexia (#98642)
* Add Fan Speed support to Nexia integration

Adds a new "set_fan_speed" service to the Nexia integration, to allow
setting speed of the air-handler/blower fans.

* Add Fan Speed to Nexia Tests

* Remove mistakenly-added changes to Climate tests

A previous version of this change made modifications to the base
Climate entity, but that approach was later abandonded. These changes
to Climate tests were left over from that, and should never have been
included.

* Add Fan Speed Number Entity

* Remove Set Fan Speed Service

* Remove fan_speed attribute

The fan_speed attribute is not necessary with the new Number entity.

* Address reviewer feedback

Rename test function to reflect fact that fan speed entities are
entities, and not sensors.
Added missing typing to variables.
Sorted list of platforms

* Add test_set_fan_speed

Also adds new test fixture for mock response to API call

* Update homeassistant/components/nexia/number.py

* Name change

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-19 16:42:13 +02:00
Ville Skyttä
3094991236
Upgrade ruff to 0.0.285 (#98647) 2023-08-19 08:17:17 -04:00
J. Nick Koston
f318063a77
Bump dbus-fast to 1.92.0 (#98656) 2023-08-19 06:13:22 -05:00
starkillerOG
39fc4b3d66
Reolink add pan position sensor (#98592)
* Add PTZ pan position sensor

* fix typing

* fix typing
2023-08-19 12:31:40 +02:00
Maciej Bieniek
66c10facfa
Add Tractive sleep and activity sensors (#98575)
* Add sleep and activity sensors

* Use device class ENUM

* Default value for value_fn
2023-08-19 11:48:23 +02:00
Jack Boswell
8a6bde1191
Add Starlink device tracker (#91445)
* Fetch location data and redact in diagnostics

* Implement device tracker

* Fix failing tests

* Update starlink-grpc-core

* Update coveragerc

* Hardcode GPS source type

* Use translations

* Move DEVICE_TRACKERS a little higher in the file

* Separate status and location check try/catches

* Revert "Separate status and location check try/catches"

This reverts commit 7628ec62f6.
2023-08-19 11:36:23 +02:00
Maciej Bieniek
c526d23686
Change naming of Shelly entities to correspond with HA guidelines (#97533)
* Do not use the device name to create the entity name

* Remove unnecessary return

* Fix mypy complains

* Gen1

* Uncapitalize description.name if channel name is used

* Fix for climate and button

* switch_3 -> switch 3

* Add _attr_has_entity_name to ShellyRestAttributeEntity

* Capitalize channel name
2023-08-19 11:13:22 +02:00
tronikos
7059252164
Bump opowerto 0.0.30 (#98660) 2023-08-19 08:57:25 +02:00
Marc Mueller
c1fb97f26b
Fix aiohttp DeprecationWarning (#98626) 2023-08-19 02:28:27 +02:00
jan iversen
1a032cebdd
modbus: slave is allowed with custom (#98644) 2023-08-18 23:18:55 +02:00
Jan Bouwhuis
a39af8aff9
Fix rest debug logging (#98649)
Correct rest debug logging
2023-08-18 23:03:56 +02:00
Robert Svensson
9e42451934
UniFi refactor using site data (#98549)
* Clean up

* Simplify admin verification

* Streamline using sites in config_flow

* Bump aiounifi
2023-08-18 22:44:59 +02:00
Arkadii Yakovets
7827f9ccae
Update country province validation (#84463)
* Update country `province` validation.

* Run pre-commit.

* Add tests

* Mod config flow

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-18 21:20:04 +02:00
Diogo Gomes
f96446cb24
Clean up integration sensor (#98552)
always update
2023-08-18 20:45:12 +02:00
G Johansson
268e5244f0
Cleanup ManualTriggerSensorEntity (#98629)
* Cleanup ManualTriggerSensorEntity

* ConfigType
2023-08-18 20:19:17 +02:00
Erik Montnemery
7fcc2dd44e
Make the check_config script open issue_registry read only (#98545)
* Don't blow up if validators can't access the issue registry

* Make the check_config script open issue_registry read only

* Update tests/helpers/test_issue_registry.py

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

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-08-18 20:15:00 +02:00
Erik Montnemery
90b9764578
Bump hatasmota to 0.7.0 (#98636)
* Bump hatasmota to 0.7.0

* Update tests according to new entity naming
2023-08-18 19:24:33 +02:00
Ville Skyttä
93683cef27
Use zoneinfo instead of pytz, mark pytz as banned in ruff (#98613)
Refs #43439, #49643.
2023-08-18 19:10:29 +02:00
G Johansson
4073f56c5e
Remove default code in Yale Smart Living (#94675)
* Remove default code in Yale Smart Living

* Test and remove check

* Finalize

* migration

* add back

* add back 2

* Fix tests

* Fix migration if code not exist
2023-08-18 16:40:24 +02:00
G Johansson
4096de2dad
Add Yale Smart Living diagnostics test (#98590)
* Yale test diagnostics

* clean

* From review
2023-08-18 16:31:07 +02:00
Robert Resch
790523126e
Name unnamed update entities by their device class (#98579) 2023-08-18 13:40:35 +02:00
jan iversen
c268adb07e
modbus: Repair swap for slaves (#97960) 2023-08-18 13:23:04 +02:00
Joakim Plate
fc444e4cd6
Allow control of pump mode for nibe (#98499)
* Allow control of pump mode

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-18 13:15:59 +02:00
jan iversen
1c56c39897
modbus config: count and slave_count can normally not be mixed. (#97902) 2023-08-18 13:10:13 +02:00
Bram Kragten
66685b796d
Update frontend to 20230802.1 (#98616) 2023-08-18 13:09:35 +02:00
Jan Bouwhuis
5ef6c03610
Log entity_id payload and template on MQTT value template error (#98353)
* Log entity_id payload and template on error

* Also handle cases with default values.

* Do not log payload twice

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Tweak test to assert without payload

* black

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-08-18 13:05:53 +02:00
Joost Lekkerkerker
80a5e341b5
Add device to Garage Amsterdam entity (#98573) 2023-08-18 11:48:00 +02:00
Robert Resch
7ac2c61f24
Fix copy-paste error in comments of number tests (#98615) 2023-08-18 11:02:30 +02:00
jan iversen
59d37f65d5
Correct modbus config validator: slave/swap (#97798) 2023-08-18 10:55:39 +02:00
jan iversen
e42b9e6c4c
Modbus: set state_class etc in slaves. (#98332) 2023-08-18 10:52:57 +02:00
Luca Leonardo Scorcia
9be532cea9
Fix inconsistent lyric temperature unit (#98457) 2023-08-18 10:52:22 +02:00
Maciej Bieniek
d5338e88f2
Fix the availability condition for Shelly N current sensor (#98518) 2023-08-18 10:49:43 +02:00
jan iversen
5a7084e78c
Correct number of registers to read for sensors for modbus (#98534) 2023-08-18 10:48:57 +02:00
Franck Nijhof
2f204d5747
Remove unneeded startswith in content check of image upload (#98599) 2023-08-18 10:38:21 +02:00
Niels Perfors
89705a22cf
Verisure unpack (#98605) 2023-08-18 10:26:01 +02:00
J. Nick Koston
d3ee2366b0
Bump dbus-fast to 1.91.4 (#98600) 2023-08-18 03:09:15 -05:00
tronikos
6b82bf2bc7
Fix Flume leak detected sensor (#98560) 2023-08-18 03:07:44 -05:00
Simone Chemelli
ab9d6ce61a
New integration for Comelit SimpleHome (#96552)
* New integration for Comelit SimpleHome

* Address first review comments

* cleanup

* aiocomelit bump and coordinator cleanup

* address review comments

* Fix some review comments

* Use config_entry.unique_id as last resort

* review comments

* Add config_flow tests

* fix pre-commit missing checks

* test_conflig_flow coverage to 100%

* fix tests

* address latest review comments

* new ruff rule

* address review comments

* simplify unique_id
2023-08-18 08:40:23 +02:00
Faidon Liambotis
9fdad592c2
Add option to disable MQTT Alarm Control Panel supported features (#98363)
* Make MQTT Alarm Control Panel features conditional

The MQTT Alarm Control Panel currently enables all features (arm home,
arm away, arm night, arm vacation, arm custom bypass) unconditionally.
This clutters the interface and can even be potentially dangerous, by
enabling modes that the remote alarm may not support.

Make all the features conditional, by adding a new "supported_features"
configuration option, comprising a list of the supported features as
options. Feature enablement seems inconsistent across the MQTT
component; this implementation is most alike to the Humidifier modes
option, but using a generic "supported_features" name that other
implementations may reuse in the future.

The default value of this new setting remains to be all features, which
while it may be overly expansive, is necessary to maintain backwards
compatibility.

* Apply suggestions from code review

* Use vol.Optional() instead of vol.Required() for "supported_features".
* Move the initialization of _attr_supported_features to _setup_from_config.

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* Apply suggestions from emontnemery's code review

* Use vol.In() instead of cv.multi_seelct()
* Remove superfluous _attr_supported_features initializers, already
  present in the base class.

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Add invalid config tests for the MQTT Alarm Control Panel

* Set expected_features to None in the invalid MQTT Alarm Control Panel tests

* Add another expected_features=None in the invalid tests

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

---------

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-08-18 08:23:48 +02:00
lymanepp
f6a9be937b
Add humidity and dew point to tomorrow.io integration (#98496)
* Add humidity and dew point to tomorrow.io integration

* Fix ruff complaints

* Make mypy happy

* Merge emontnemery's changes

* Fix formatting error

* Add fake humidity and dew point to test data (first interval only)

* Fix inconsistency

* Fix inconsistency
2023-08-18 07:41:25 +02:00
Michael Hansen
49d2c60992
Add pipeline VAD events (#98603)
* Add stt-vad-start and stt-vad-end pipeline events

* Update tests
2023-08-17 19:58:58 -04:00
Erik Montnemery
c17f08a3f5
Create a single entity for new met.no config entries (#98098)
* Create a single entity for new met.no config entries

* Fix lying docstring

* Fix test
2023-08-17 19:41:11 +02:00
Erwin Douna
d761b5ddbf
Add tests and typing to Tado config flow (#98281)
* Upgrading tests

* Code improvements and removing unused function

* Update homeassistant/components/tado/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/tado/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/tado/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tado/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tado/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tado/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tado/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tado/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Importing Any

* Rerunning Blackformatter

* Adding fallback scenario to options flow

* Adding constants

* Adding a retry on the exceptions

* Refactoring to standard

* Update homeassistant/components/tado/config_flow.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Adding type to validate_input

* Updating test

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-17 19:37:34 +02:00
Joost Lekkerkerker
dd69ba3136
Migrate Cert Expiry to has entity name (#98160)
* Migrate Cert Expiry to has entity name

* Migrate Cert Expiry to has entity name

* Fix entity name
2023-08-17 18:29:20 +02:00
epenet
a9b1f23b7f
Bump renault-api to 0.2.0 (#98587) 2023-08-17 18:16:32 +02:00
Russell Cloran
49995a4667
Add tests for device tracker in Prometheus (#98054) 2023-08-17 17:58:52 +02:00
J. Nick Koston
3e14e5acba
Bump aioesphomeapi to 16.0.1 (#98536) 2023-08-17 17:46:21 +02:00