Commit Graph

10212 Commits (231d434b760097ac142da3968892ce034e5d0f38)

Author SHA1 Message Date
Joakim Sørensen 737dd6fc26
Add tests to hassio binary_sensor platform (#60609) 2021-12-01 21:41:31 +01:00
J. Nick Koston 4b8a8dda8d
Fix yeelight discovery (#60783)
Regressed in #60640
2021-12-01 15:13:59 -05:00
epenet 1fa0351447
Use dataclass properties in tolo discovery (#60784) 2021-12-01 20:43:33 +01:00
epenet 7a098cff1c
Use dataclass properties in upnp discovery (#60744)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 09:23:38 -10:00
epenet e95914cf60
Use dataclass properties in dlna_dmr discovery (#60693)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 08:59:12 -10:00
epenet a3cccb50c7
Use dataclass properties in tesla_wall_connector discovery (#60741)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 19:39:43 +01:00
epenet 3d5f4e54ea
Use dataclass properties in vicare discovery (#60746)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 19:39:03 +01:00
epenet 4411d51d6f
Use dataclass properties in deconz discovery (#60690)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 19:38:20 +01:00
einarhauks 5c4422dc72
Remove power sensor from Tesla Wall Connector (#60775)
Add voltage and current sensors for each phase
2021-12-01 19:21:56 +01:00
Robert Svensson 8ddfa424c0
Add typing to deCONZ init and config flow (#59999) 2021-12-01 18:59:52 +01:00
Aaron Bach a053c0a106
Bump py17track to 2021.12.1 (#60762) 2021-12-01 18:52:33 +01:00
epenet 5c992ec2cc
Remove cleanup_registry from onewire (#60546)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 18:38:07 +01:00
einarhauks a6ec646f98
Tesla wall connector config flow refactor continued (#60774) 2021-12-01 18:18:42 +01:00
epenet 3eba575fde
Use state class enum for Onewire (#60770)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 17:42:08 +01:00
epenet cd9962dfa0
Use device and state class enum for Renault (#60768)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 17:40:56 +01:00
Milan Meulemans b154f43657
Use device class enum in Rituals (#60767) 2021-12-01 17:34:30 +01:00
epenet 7363033ada
Use device class enum in Onewire (#60766)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 17:33:26 +01:00
Franck Nijhof c985bee1dd
Add sensor platform to Tailscale (#60751)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-01 17:05:44 +01:00
epenet 6caaa5f6bd
Add compatibility tests for MqttServiceInfo (#60754)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 17:04:49 +01:00
epenet 2fe0382841
Add compatibility tests for UsbServiceInfo (#60753)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 05:43:31 -10:00
epenet 7f355681a7
Add compatibility tests for DhcpServiceInfo (#60752)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 05:43:09 -10:00
einarhauks e7f00c2c4f
Refactor Tesla wall connector config flow (#60755) 2021-12-01 16:07:24 +01:00
Marcel van der Veldt 5d0cf4cb95
Fix tests for Hue integration (#60683)
* fix tests

make sure the migration code is not called in all other tests

* only patch v2 check where needed
2021-12-01 14:53:30 +01:00
Franck Nijhof 6a8c732b37
Add Tailscale integration (#59764)
* Add Tailscale integration

* Use DeviceEntryType

* Fix tests

* Adjust to new Pylint version

* Use enums for device classes

* Update homeassistant/components/tailscale/config_flow.py

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

* Pass empty string as default

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-01 14:40:38 +01:00
Franck Nijhof c28b45cd83
Migrate entity categories to StrEnum (#60720) 2021-12-01 13:54:36 +01:00
Paulus Schoutsen 72d8882c79
Handle errors response to be None (#60679)
Co-authored-by: Philip Allgaier <mail@spacegaier.de>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-01 13:51:10 +01:00
epenet cbab0ba9c0
Drop base ATTR constants in zeroconf (#60561)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 12:29:41 +01:00
Raman Gupta eeafa36abc
Add SmartStart provisioning support to zwave_js WS API (#59037)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-01 11:43:51 +01:00
Joakim Sørensen bbd179200c
Use device class enum in UptimeRobot (#60688) 2021-12-01 10:36:15 +01:00
Franck Nijhof 79ebc1b79a
Use device class enums in TwenteMilieu (#60686) 2021-12-01 10:25:26 +01:00
Franck Nijhof 74f7f28f1c
Use device class enums in WLED (#60684) 2021-12-01 10:16:44 +01:00
epenet 73a4dba2ae
Use dataclass properties in yeelight discovery (#60640)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 22:28:19 -10:00
Kevin Worrel 8240b8c72e
Update screenlogic use asyncio API (#60466)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-30 22:19:01 -10:00
Teemu R 908b7ca9c2
Bump xiaomi_miio dependency (#60650) 2021-12-01 08:08:59 +01:00
Franck Nijhof 9715601255
Add button device classes to NAM (#60621) 2021-12-01 07:08:17 +01:00
G Johansson 51ebfade52
Fix ADR 0003 issues in trafikverket_weatherstation (#60664)
* Fix ADR 0003 issues

* Remove commented code
2021-11-30 22:54:10 +01:00
epenet 8954609f6b
Use dataclass properties in axis discovery (#60558)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 10:15:34 -10:00
G Johansson 11b81ef88b
Config flow for trafikverket_weatherstation (#60078)
* First commit

* Added tests

* Add requirements for test

* Correction requirements tests

* Add init to untested files

* Fix review comments

* Resolve last items from review

* Add sync_abort_entries_match in import flow
2021-11-30 19:53:41 +01:00
Marcel van der Veldt 19b4cc7119
Hue handle device update (#60612) 2021-11-30 10:14:51 -08:00
epenet be89c07cac
Use dataclass properties in nanoleaf discovery (#60580)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 06:05:50 -10:00
Tim Rightnour 8a9f197918
Binary sensor platform for the Balboa Spa (#60409) 2021-11-30 06:04:24 -10:00
epenet d75785d701
Use dataclass properties in hue discovery (#60598)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 16:36:35 +01:00
Allen Porter a84b12abe7
Revert "Add an entity service for saving nest event related snapshots" (#60632) 2021-11-30 16:16:00 +01:00
Jc2k b8a1899d48
Remove homekit_controller's air quality entity in favor of separate sensor entities (#60480) 2021-11-30 16:14:49 +01:00
Franck Nijhof 16462df451
Add button device classes to MQTT (#60628) 2021-11-30 16:08:02 +01:00
epenet 0d24862a28
Use dataclass properties in homekit_controller discovery (#60626)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 16:06:18 +01:00
Jan Bouwhuis cd351cf22b
Fix test naming switch (#60630) 2021-11-30 15:45:06 +01:00
Jan Bouwhuis f07e676c82
Allow template int filter to render from a bytes based integer (#60452)
* Allow template int to render bytes

* re-triggering tests

* Add warning when base !=10 and rendering bytes

* re-trigger tests

* Re-trigger tests

* remove period

* Update homeassistant/helpers/template.py

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

* Fix logger syntax

* remove parentheses

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-30 15:01:43 +01:00
Jan Bouwhuis 2a2a20fcb3
Add mqtt sensor configurable state encoding for sensor and binary_sensor platform (#60447)
* Add mqtt sensor state encoding

* Make encoding attribute not specific to states

* Move encoding attribute to schema base
2021-11-30 14:04:24 +01:00
Franck Nijhof 7469f083fd
Migrate number mode to StrEnum (#60614) 2021-11-30 12:54:06 +01:00
Franck Nijhof 1b8eba0afd
Add button device classes to WLED (#60613) 2021-11-30 12:12:08 +01:00
epenet d537ec1d6f
Use dataclass properties in bosch_shc discovery (#60559) 2021-11-30 10:57:37 +01:00
Allen Porter c4e5242b0c
Add an entity service for saving nest event related snapshots (#58369)
* Add an entity service for saving nest event related snapshots

Add an entity service `nest.snapshot_event` for recording camera event
related media to disk. This is based on `camera.snapshot` but takes in
a parameter for a Nest API event_id.

PR #58299 adds `nest_event_id` to events published by nest so that they can
be hooked up to this service for capturing events.

Future related work includes:
- Height & Width parameters for the rendered image
- Support video clips for new battery cameras
- An API for proxying media related to events, separate from the camera image thumbnail
- A Nest MediaSource for browsing media related to events

* Revert debugging information

* Add test coverage for OSError failure case

* Add service description for nest snapshot service

* Reduce unnecessary diffs.

* Sort nest camera imports

* Remove unnecessary if block in snapshot
2021-11-29 23:04:29 -08:00
Allen Porter cc543b200d
Update `nest` config flow to dramatically simplify end user setup with automated pub/sub subscription creation (#59260)
* Configure nest pubsub subscriber automatically

Update the config flow to configure the nest pubsub subscriber automatically.
After completing the authentication step, the user is now asked for the google
cloud console ID, which is needed to create a subscription.

Home Assistant manages the lifecycle of a subscription only when it is created
by the ConfigFlow. Otherwise (if specified in configuration.yaml) it treats
it similarly as before.

These are the considerations or failure modes taken into account:
- Subscription is created with reasonable default values as previously recommended (e.g. retion only keeps 5-15 minutes of backlog messages)
- Subscriptions are created with a naming scheme that makes it clear they came from home assistant, and with a random
  string
- Subscriptions are cleaned up when the ConfigEntry is removed. If removal fails, a subscription that is orphaned will
  be deleted after 30 days
- If the subscription gets into a bad state or deleted, the user can go through the re-auth flow to re-create it.
- Users can still specifcy a CONF_SUBSCRIBER_ID in the configuration.yaml, and
skip automatic subscriber creation

* Remove unnecessary nest config flow diffs and merge in upstream changes

* Incorporate review feedback into nest subscription config flow

* Update text wording in nest config flow
2021-11-29 22:41:29 -08:00
Allen Porter 8ca89b10eb
Split StreamState class out of SegmentBuffer (#60423)
This refactoring was pulled out of https://github.com/home-assistant/core/pull/53676 as an
initial step towards reverting the addition of the SegmentBuffer class, which will be
unrolled back into a for loop.

The StreamState class holds the persistent state in stream that is used across stream worker
instantiations, e.g. state across a retry or url expiration, which primarily handles
discontinuities. By itself, this PR is not a large win until follow up PRs further simplify
the SegmentBuffer class.
2021-11-29 22:25:28 -08:00
Allen Porter df90fdf641
Add an available property on Stream (#60429) 2021-11-29 21:23:58 -08:00
David F. Mulcahey 2f24fc0fd4
Fix Flo returning stale data (#60491)
* Fix Flo returning stale data

* update tests

* update coverage
2021-11-29 20:00:39 -05:00
Joakim Sørensen 8a5df5f7eb
Fix ingress for non admin (#60120) 2021-11-29 23:03:16 +01:00
Paulus Schoutsen 914f7f85ec
Add local only users (#57598) 2021-11-29 14:01:03 -08:00
Maciej Bieniek 847b10fa65
Add `button` platform to NAM integration (#60410) 2021-11-29 22:58:04 +01:00
Michael 8626de24fc
Use correct value for current temperature for AVM Fritz!Smarthome thermostat devices (#60510) 2021-11-29 19:58:22 +01:00
Michael 83acfda757
Add reboot button to Shelly devices (#60417) 2021-11-29 19:49:49 +01:00
Erik Montnemery 814a742518
Don't wait for Google Assistant service calls when reporting state (#59832)
* Don't wait for Google Assistant service calls when reporting state

* Update tests

* Add test
2021-11-29 18:34:38 +01:00
epenet 54df81cbab
Use ZeroconfServiceInfo in vizio (#60115)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-29 18:27:15 +01:00
epenet 37430e7c9e
Add get method to ZeroconfServiceInfo (#60528)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-29 17:37:55 +01:00
epenet ec1c52d945
Use dataclass for SsdpServiceInfo (#59931)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-29 06:10:07 -10:00
einarhauks 7ece86ee8d
Add sensors to Tesla Wall Connector Integration (#60507) 2021-11-29 06:05:14 -10:00
Kevin Stillhammer 6167e4178b
Use find_coordinates in here_travel_time (#59938) 2021-11-29 16:54:03 +01:00
Maikel Punie f18fe342ac
Remove configuration.yaml support for the velbus component (#60411) 2021-11-29 16:33:26 +01:00
Simone Chemelli 07c09ab268
Add new name handling for Shelly RPC devices (#60539) 2021-11-29 16:16:49 +01:00
jjlawren a88cc8b98c
Move Sonos bass & treble controls to number entities (#60498) 2021-11-29 16:00:37 +01:00
Franck Nijhof 3aa35e15c2
Remove custom WLED services (#60537) 2021-11-29 15:15:50 +01:00
rianadon 09af85c6a4
Add native unit types for weather entities (#59533)
* Add native unit types for weather entities

* Update weatherentity and change precision in climacell test

* Move weather test to demo tests

* Add weather test for temperature conversion

* Add more unit conversion tests

* Remove extra native_ methods

* Remove extra properties and save precision change for another PR

* Remove visibility_unit from metoffice component

The vibility values given by metoffice are formatted into strings,
which means they can't automatically be converted.

* Improve docstrings and convert pressures in forecast

* Add precipitation and wind speed units

* Clean up tests

* Round converted weather values

* Round weather values to 2 decimal places

* Move number of rounding decimal places to constant

* Docstring and styles
2021-11-29 14:44:44 +01:00
Raphaël Beamonte 8600b5597a
Add 'trigger' support for MQTT Alarm Control Panel (#60525)
When configuring an Alarm Control Panel through MQTT discovery, it
was not possible to use the trigger service. This fixes that by making
it available the same way as ARM and DISARM services are.
2021-11-29 14:41:52 +01:00
Franck Nijhof 4cff04cbd5
Remove obsolete light attributes from WLED (#60535) 2021-11-29 11:32:30 +01:00
Matthias Alphart 823c37f4c7
100% test coverage for Fronius integration (#60515)
* support for multiple fixture sets

* add test data from Fronius Gen24 device

* test Gen24 with Storage

* test Gen24 inverter without storage

* 100% coverage

* copy&paste fail
2021-11-29 09:15:10 +01:00
J. Nick Koston ef8cf9e597
Add configuration_url to bond (#60523) 2021-11-29 08:44:11 +01:00
Michael Kowalchuk 15bf4dae9b
Add zwave_js speed configurations for GE/Jasco 12730 and 14287 fans (#60517) 2021-11-29 08:27:32 +01:00
einarhauks 4d345e0665
Add Tesla Wall Connector integration (#60000) 2021-11-28 07:41:01 -10:00
Matthias Lohr 2d1d9e9e20
Address late review of tolo integration (#60453)
* improvements requested by @MartinHjelmare

* addressed requested changes

* more improvements
2021-11-28 16:50:57 +01:00
Erik Montnemery caf5ee2fab
Remove optional validation when creating conditions (#60481) 2021-11-28 14:54:07 +01:00
Paulus Schoutsen c6ec84d0cf
Remove store user as auth result (#60468) 2021-11-28 14:14:52 +01:00
Christopher Bailey 5a72c9f7c3
Rename various usages of UniFi to better identify only UniFi Network (#59568)
* Renames various usages of UniFi to better indentify only UniFi Network

* Apply suggestions from code review

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

* Missed renames

* Updates more locations

* Removes instances of application/controller

* Missed a spot

* Updates all UniFi Controller instances

* Fixes typo

* Reverts changes to translations

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2021-11-26 22:44:49 +01:00
Michael 296b738740
Add button to trigger ota firmware update for Shelly devices (#58757)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-11-26 14:19:39 +01:00
Erik Montnemery ea102f71a6
Correct validation of repeats in scripts and automations (#60318)
* Correct validation of repeats in scripts and automations

* Improve validation test
2021-11-26 14:12:59 +01:00
Erik Montnemery 88068fa97f
Remove unused OrderedEnum (#60392) 2021-11-26 11:10:39 +01:00
Chris Talkington 2a35ae2c0a
Update rokuecp to 0.8.4 (#57259) 2021-11-25 18:21:39 -06:00
Michael c9dc3a61af
Fix slow config_flow test in devolo Home Network (#60364) 2021-11-26 00:14:15 +01:00
epenet 22bdd38583
Use SsdpServiceInfo for SOURCE_SSDP tests (part 4) (#60339)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 17:13:52 -06:00
Michael af8e1143b9
Fix slow config_flow test in upnp (#60377) 2021-11-26 00:07:23 +01:00
Michael db0c82b88e
Fix slow config_flow test in Twinkly (#60374) 2021-11-26 00:00:37 +01:00
Michael 16eb85bfc8
Fix slow config_flow test in squeezebox (#60373) 2021-11-25 23:26:28 +01:00
Michael ba7b5681e6
Fix slow config_flow test in Dune HD (#60366) 2021-11-25 22:34:47 +01:00
J. Nick Koston d504c1e3e8
Add support for flux_led 0xA2 devices (#60361) 2021-11-25 21:20:34 +01:00
Michael fb909eca8a
Fix slow config_flow test in bond (#60355) 2021-11-25 12:32:26 -06:00
Tim Rightnour 03d1efab46
Add Balboa Spa integration (#59234) 2021-11-25 12:04:06 -06:00
Michael 78305ac6ae
Fix slow config_flow test in AVM Fritz!SmartHome (#60348) 2021-11-25 11:48:17 -06:00
epenet f292691b7b
Use SsdpServiceInfo for ssdp tests (part 3) (#60334)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 11:46:20 -06:00
J. Nick Koston 67684d68ff
Fix slow yeelight discovery test (#60346) 2021-11-25 11:39:37 -06:00
epenet 2468724378
Use SsdpServiceInfo for ssdp tests (part 2) (#60322)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 09:45:35 -06:00