Commit graph

53366 commits

Author SHA1 Message Date
Jan Bouwhuis
e311a6835e
Add valve platform support to google_assistant ()
* Add valve platform to google_assistant

* Use constant for domains set
2023-12-23 16:46:25 +01:00
Patrick Frazer
c126022d4f
Add switches to drop_connect integration ()
* Add switches to drop_connect integration

* Let device update state

* Simplify icon property

* Use constants for icon names

* Add simulated responses from devices

* Use keyed form for switch value

* Clean up properties
2023-12-23 16:39:31 +01:00
Marco
d450a7f57e
Improve mikrotik error handling ()
* improve mikrotik error handling

* switch to debug

* fix mock command arguments

* add recommendations

---------

Co-authored-by: Marco98 <Marco98@users.noreply.github.com>
2023-12-23 16:26:27 +01:00
Sid
0af850cbb6
Restructure enigma2 integration to use async ()
Restructure the enigma2 integration to use async
2023-12-23 16:08:53 +01:00
Jan Bouwhuis
6da2f98d34
Fix mqtt valve is not resetting opening or closing state ()
* Fix mqtt valve is not resetting opening or closing state

* Require state or position attr in JSON state update

* Do not change `_attr_is_closed` if valve reports a position

* Add comment, use tuple

* Call _update_state
2023-12-23 15:18:44 +01:00
Brett Adams
043f3e640c
Rework entity description functions in Tessie ()
* use lamdba to return the library function

* Rename mocks

* lambda number

* Lambda button

* Add missing

* Remove context manager
2023-12-23 13:45:06 +01:00
doggkruse
ea7c839423
Apply units of measure provided in API when available in LaCrosse View ()
* Apply units of measure provided in API when available to avoid mismatch of native units.  Improved fix for 

* Fix ruff error
2023-12-23 13:41:15 +01:00
Michael
da684d6a7b
Add diagnostics support to Tankerkoenig () 2023-12-23 12:20:15 +01:00
J. Nick Koston
d83dafa14a
Add support for attribute caching to the fan platform () 2023-12-23 11:26:40 +01:00
Robert Resch
060172fc24
Deprecate deprecated data entry flow constants () 2023-12-23 11:25:39 +01:00
Michael
859e7972ac
Add significant Change support for vacuum () 2023-12-23 11:24:32 +01:00
J. Nick Koston
ff004a1c20
Add support for attribute caching to the sensor platform () 2023-12-23 11:13:02 +01:00
J. Nick Koston
97ed6570a7
Add support for attribute caching to the binary_sensor platform () 2023-12-23 11:11:50 +01:00
J. Nick Koston
1c8d961832
Add support for attribute caching to ToggleEntity () 2023-12-23 11:11:14 +01:00
J. Nick Koston
ca7daa21fe
Add support for attribute caching to the text platform () 2023-12-23 11:10:46 +01:00
J. Nick Koston
ef0031cbcf
Add support for attribute caching to the button platform () 2023-12-23 11:09:46 +01:00
J. Nick Koston
98dd69ba09
Add support for attribute caching to the remote platform () 2023-12-23 11:09:18 +01:00
J. Nick Koston
d1174593f9
Add support for attribute caching to the lock platform () 2023-12-23 11:08:35 +01:00
J. Nick Koston
bb30bfa225
Reduce zeroconf matcher complexity () 2023-12-23 11:04:05 +01:00
Michael
321dc3984c
Add significant Change support for humidifier () 2023-12-23 10:56:51 +01:00
Robert Resch
20ba764d92
Deprecate deprecated camera constants () 2023-12-23 10:46:23 +01:00
Franck Nijhof
3404bd4de5
Fix flaky Tailwind tests by fixing via_device () 2023-12-23 10:45:20 +01:00
J. Nick Koston
5156a93b9e
Add support for attribute caching to the update platform () 2023-12-23 10:29:55 +01:00
Aaron Bach
1e12c7fe12
Fix bug with non-existent Notion bridge IDs () 2023-12-23 10:26:00 +01:00
jjlawren
0ae4d017b9
Add subwoofer crossover support to Sonos Amp devices () 2023-12-23 10:25:20 +01:00
J. Nick Koston
5d2ddcb1d2
Add support for attribute caching to the number platform () 2023-12-22 15:22:18 -10:00
J. Nick Koston
634551dae0
Add support for attribute caching to the humidifier platform () 2023-12-22 15:22:06 -10:00
Phil Bruckner
963347b9c5
Reduce Life360 update time by fetching Places & Members in parallel () 2023-12-22 16:29:26 -06:00
Erik Montnemery
a4357409c8
Fix Shelly consumption_types () 2023-12-22 22:58:59 +01:00
Bram Kragten
7ba1736637
Filter by supported features for todo services () 2023-12-22 21:22:16 +01:00
Erik Montnemery
3a744d374b
Add support for caching entity properties () 2023-12-22 09:02:55 -10:00
Patrick Frazer
c41173bb29
Add binary sensors to drop_connect integration () 2023-12-22 19:26:52 +01:00
Allen Porter
656d0696bb
Add support for re-ordering Google Tasks ()
* Add reorder and task ordering

* Remove un-needed js id code

* Revert dead code deletion

* Remove reverted test and dead logger

* Update comment name
2023-12-22 18:49:41 +01:00
Kristof Mariën
32a5345a85
Add foscam coordinator ()
* Add foscam coordinator

* Code cleanup

* Coordinator cleanup

* Coordinator cleanup

* Replace async_timeout with asyncio.timeout

* Ignore coordinator (requires external device)

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-22 17:44:52 +01:00
Cyrill Raccaud
181190d22d
Log when swiss_public_transport loses connection ()
* better handling of sensor init state

* sensor.py use integrated attr

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

* use parents implementation for availability

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

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-12-22 17:11:49 +01:00
Floris272
8b0d19aca2
Add bluecurrent integration ()
* Add bluecurrent integration

* Apply feedback

* Rename integration

* changed constants and removed strings.sensor.json

* update blue_current integration

* update bluecurrent-api to 1.0.4

* Update bluecurrent-api to 1.0.5

* Apply feedback

* Remove translation

* Apply feedback

* Use customer_id as unique id

* Apply feedback

* Add @pytest.mark.parametrize

* Replace loop.create_task with async_create_task
2023-12-22 16:34:16 +01:00
Joost Lekkerkerker
989a7e7b10
Clean up swiss public transport () 2023-12-22 15:59:01 +01:00
Rami Mosleh
c91ac22d3c
Add location selector to Islamic prayer times ()
* Add location selector to config flow

* Simplify entry data

* fix abort string

* Add migration with minor version

* Follow documented migration method
2023-12-22 15:24:50 +01:00
Alan Murray
b7661b4d79
Bump aiopulse to 0.4.4 ()
* Bump Rolease Acmeda version 

Bump aiopulse version to 0.4.4 to fix issue for blinds that use status structure to indicate blinds that are fully open or closed.

* Update manifest.json

* update requirements
2023-12-22 15:23:39 +01:00
G Johansson
126a58a33e
Return multiple trains in Trafikverket Train ()
* Add list of trains to coordinator

* Fix to work

* snapshot

* Fixes

* Fix
2023-12-22 15:18:16 +01:00
Jan-Philipp Benecke
13504d5fd5
Add consider home interval to ping ()
* Add consider home interval to ping

* Run ruff after rebase

* Fix buggy consider home interval
2023-12-22 14:50:58 +01:00
Erik Montnemery
922cef2884
Don't make huawei_lte entity classes dataclasses () 2023-12-22 14:27:28 +01:00
Patrick Frazer
fce1b6d248
Add DROP integration ()
* Add DROP integration

* Remove all but one platform for first PR

* Simplify initialization of hass.data[] structure

* Remove unnecessary mnemonic 'DROP_' prefix from DOMAIN constants

* Remove unnecessary whitespace

* Clarify configuration 'confirm' step description

* Remove unnecessary whitespace

* Use device class where applicable

* Remove unnecessary constructor and change its elements to class variables

* Change base entity inheritance to CoordinatorEntity

* Make sensor definitions more concise

* Rename HA domain from drop to drop_connect

* Remove underscores from class and function names

* Remove duplicate temperature sensor

* Change title capitalization

* Refactor using SensorEntityDescription

* Remove unnecessary intermediate dict layer

* Remove generated translations file

* Remove currently unused string values

* Use constants in sensor definitions

* Replace values with constants

* Move translation keys

* Remove unnecessary unique ID and config entry references

* Clean up DROPEntity initialization

* Clean up sensors

* Rename vars and functions according to style

* Remove redundant self references

* Clean up DROPSensor initializer

* Add missing state classes

* Simplify detection of configured devices

* Change entity identifiers to create device linkage

* Move device_info to coordinator

* Remove unnecessary properties

* Correct hub device IDs

* Remove redundant attribute

* Replace optional UID with assert

* Remove redundant attribute

* Correct coordinator initialization

* Fix mypy error

* Move API functionality to 3rd party library

* Abstract device to sensor map into a dict

* Unsubscribe MQTT on unload

* Move entity device information

* Make type checking for mypy conditional

* Bump dropmqttapi to 1.0.1

* Freeze dataclass to match parent class

* Fix race condition in MQTT unsubscribe setup

* Ensure unit tests begin with invalid MQTT state

* Change unit tests to reflect device firmware

* Move MQTT subscription out of the coordinator

* Tidy up initializer

* Move entirety of MQTT subscription out of the coordinator

* Make drop_api a class property

* Remove unnecessary type checks

* Simplify some unit test asserts

* Remove argument matching default

* Add entity category to battery and cartridge life sensors
2023-12-22 14:24:08 +01:00
Nikolay Vasilchuk
243ee2247b
Add starline binary sensors ()
* Additional attributes for starline

* Handsfree binary sensor

* Sensors

* Review
2023-12-22 13:22:44 +01:00
ashionky
102c7f1959
Add Refoss integration ()
* refoss

* refoss

* refoss

* refoss

* refoss modify

* ip

* 8.22

* format

* format

* format

* bugfix

* test

* test

* test

* test

* test

* test

* 9.1

* refosss

* refoss

* refoss

* refoss

* refoss

* refoss

* refoss

* refoss

* test

* requirements_test_all.txt

* codeowners

* refoss

* Review feedback repair

* strings

* refoss

* refoss

* refoss

* 1.1.1

* 1.1.2

* refoss

* refoss

* refoss.1.1.7

* refoss-gree

* 1.1.7

* test

* refoss

* test refoss

* test refoss

* refoss-test

* refoss

* refoss

* test

* test

* refoss

* CODEOWNERS

* fix

* Update homeassistant/components/refoss/__init__.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-12-22 13:18:32 +01:00
Jan Bouwhuis
f536bc1d0c
Add valve support to Amazon Alexa ()
Add valve platform to Amazon Alexa
2023-12-22 12:08:06 +01:00
Brett Adams
b4f8fe8d4d
Add media player platform to Tessie ()
* Add media platform

* Add more props

* Fix platform filename

* Working

* Add a test

* Update test and fixture

* Refactor media player properties to handle null values

* Add comments

* add more assertions

* Fix test docstring

* Use walrus instead.

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

* Test  when media player is idle

* Fix tests

* Remove None type from volume_level

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

* Return media position only when a media duration is > 0

* Remove impossible None type

* Add snapshot and freezer

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-12-22 12:07:47 +01:00
RJPoelstra
2c2e6171e2
Add integration for Vogel's MotionMount ()
* Skeleton for Vogel's MotionMount support.

* Generated updates.

* Add validation of the discovered information.

* Add manual configuration

* Use a mac address as a unique id

* Add tests for config_flow

* Add a 'turn' sensor entity.

* Add all needed sensors.

* Add number and select entity for control of MotionMount

* Update based on development checklist

* Preset selector now updates when a preset is chosen

* Fix adding presets selector to device

* Remove irrelevant TODO

* Bump python-MotionMount requirement

* Invert direction of turn slider

* Prepare for PR

* Make sure entities have correct values when created

* Use device's mac address as unique id for entities.

* Fix missing files in .coveragerc

* Remove typing ignore from device library.

Improved typing also gave rise to the need to improve the callback mechanism

* Improve typing

* Convert property to shorthand form

* Remove unneeded CONF_NAME in ConfigEntry

* Add small comment

* Refresh coordinator on notification from MotionMount

* Use translation for entity

* Bump python-MotionMount

* Raise `ConfigEntryNotReady` when connect fails

* Use local variable

* Improve exception handling

* Reduce duplicate code

* Make better use of constants

* Remove unneeded callback

* Remove other occurrence of unneeded callback

* Improve removal of suffix

* Catch 'getaddrinfo' exception

* Add config flow tests for invalid hostname

* Abort if device with same hostname is already configured

* Make sure we connect to a device with the same unique id as configured

* Convert function names to snake_case

* Remove unneeded commented-out code

* Use tuple

* Make us of config_entry id when mac is missing

* Prevent update of entities when nothing changed

* Don't store data in `hass.data` until we know we will proceed

* Remove coordinator

* Handle situation where mac is EMPTY_MAC

* Disable polling

* Fix failing hassfest

* Avoid calling unique-id-less discovery handler for situations where we've an unique id
2023-12-22 12:04:58 +01:00
Brett Adams
c824d06a8c
Add number platform to Tessie ()
* Add number platform

* Make self.set consistent

* Fix test docstring

* Use entity descriptions

* Add patch_description to tests

* Rename argument to arg

* Make max key mandatory

* Set SOC min to normal value
2023-12-22 11:57:21 +01:00
Nerdix
9237740103
Increase version default timeout from 10 to 30 seconds ()
* Update __init__.py

* Update __init__.py

* Revert timeout changes

* Revert commit Revert timeout changes
2023-12-22 11:37:03 +01:00