Commit Graph

26256 Commits (13c8c2e841280acc0466c5184f308369977e92e3)

Author SHA1 Message Date
J. Nick Koston a5b98b40ac
Resolve delays with tuya devices () 2020-04-21 20:29:42 -07:00
Paulus Schoutsen e9ff1940d6
Translation fixes and tweaks ()
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
2020-04-21 17:57:21 -07:00
J. Nick Koston 96649a7e27
Use registry to find linked batteries for homekit () 2020-04-21 17:43:49 -07:00
Paulus Schoutsen 9b757e4c22
Merge pull request from home-assistant/rc 2020-04-21 17:26:36 -07:00
HomeAssistant Azure 46920e9be6 [ci skip] Translation update 2020-04-22 00:03:20 +00:00
Erik Montnemery 877eb0c3ad
Don't log same MQTT message multiple times () 2020-04-21 16:48:04 -07:00
Paulus Schoutsen 61620dec30 Bumped version to 0.108.7 2020-04-21 16:27:13 -07:00
Pascal Vizeli 12e92d504d Fix cloud binary_sensor & TTS/STT () 2020-04-21 16:26:54 -07:00
ochlocracy 16e1b3772c Modify requirements for CameraStreamController in Alexa () 2020-04-21 16:26:53 -07:00
J. Nick Koston 59686274d7 Ensure nexia state file is in a writable location ()
* bump nexia to 0.9.2
2020-04-21 16:26:52 -07:00
jan iversen 945567150d Rollback modbus to version 0.107.7 keep new functionality ()
* Rollback modbus to version 0.107.7

Update manifest to not use async.

Rollback entities to sync version.

Keep newer modifications apart from async.

Rollback __init__ to sync version but keep the new functionality.

add async sub directory

Adding the current (not working) version in a sub directory,
to allow easy sharing with a few alfa testers.

The async version are to be updated to use the serial/tcp already
available instead of the flaky pymodbus version. pymodbus is still
needed to encode/decode the messagess.

Update test cases to reflect sync implementation, but
keep the new functionality like e.g. conftest.py.

* do not publish async version

The async version will be made available in a forked repo, until
it is ready to replace the production code.
2020-04-21 16:26:00 -07:00
jan iversen eedfca6623 Fix modbus sync/async issues ()
* add pyserial to manifest

pymodbus is very developer oriented and assumes every developer
adapt the requierements.txt to his/hers needs.

Our requirements.txt is different it contains all posibilities allowing
user to later change configuration without having to install extra
packages.

As a consequence manifest.json needs to include the pyserial.

* modbus: make truly async client creation

Make hass call listen_once async.
Integrate content of start_modbus into async_setup.

Do not use the boiler plate create tcp client function from
pymodbus as it is sync, and also does not work well with asyncio,
instead call the init_<type> directly, since that is async.

* both component/modbus and component/serial uses pyserial-async
but with slighty different version requirements.

Combined the 2.

* Review 1

* Review 2

* Review

@staticmethod is no good, because the function uses class variables.

* Review

Pytest is sometimes a bit cryptic, lets hope this does it.
2020-04-21 16:25:26 -07:00
Paulus Schoutsen 41e4dc4336 Cloud do checks during setup ()
* Update cloud to do more tasks during async_setup

* Upgrade hass_nabucasa to 0.33
2020-04-21 16:14:18 -07:00
Joakim Sørensen 730a257f3c
Rename translations dir for integrations () 2020-04-21 16:11:05 -07:00
J. Nick Koston d06fce6997
Display Homekit QR code when pairing ()
* Display a QR code for homekit pairing

This will reduce the failure rate with HomeKit
pairing because there is less chance of entry
error.

* Add coverage

* Test that the qr code is created

* I cannot spell

* Update homeassistant/components/homekit/__init__.py

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Update homeassistant/components/homekit/__init__.py

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-04-21 17:38:43 -05:00
Franck Nijhof ca08b70984
Revert removal of JSON validator in hassfest ()
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
2020-04-21 14:42:04 -07:00
Robert Svensson 867138ebb8
UniFi - Only match ssid filter if ssid is present, this will only affect recently disconnected clients and clients which have a previously created entry in entity registry () 2020-04-21 21:13:19 +02:00
Robert Svensson e004cd029a
UniFi - Improve handling of client tracker is connected to better respect configured delay () 2020-04-21 21:12:44 +02:00
Oscar Calvo b73c774b07
Fix a bug where a single long sms message is sent as multiple… () 2020-04-21 21:03:15 +02:00
J. Nick Koston 5635cdb77c
Fix setting up multiple UPSes with NUT in 0.108.x () 2020-04-21 10:47:31 -07:00
ochlocracy 0d598dd6d6
Modify requirements for CameraStreamController in Alexa () 2020-04-21 10:46:56 -07:00
springstan ef9d9b17bd
Drop UNIT_ prefix for constants ()
* Drop UNIT_ prefix for VOLT

* Drop UNIT_ prefix for DEGREE

* Drop UNIT_ prefix for CONDUCTIVITY

* Drop UNIT_ prefix for UV_INDEX

* Run isort
2020-04-21 19:45:53 +02:00
Martin Hjelmare fbde040f59
Complete device registry update ()
* Add manufacturer and model parameters to device registry update
  method.
2020-04-21 19:40:16 +02:00
Franck Nijhof 220baed33a
Remove Yahoo Weather integration () 2020-04-21 19:11:19 +02:00
Pascal Vizeli 5f2a9ed965
Fix cloud binary_sensor & TTS/STT () 2020-04-21 08:55:09 -07:00
David Nielsen 08e74352ec
Update bravia-tv backend ()
* bravia-tv version bump

* Fix Auth Cookies

    - Fix authentication cookie expiration.
    - Remove obsolete error handling (since bravia-tv==1.0.2)
    - Remove obsolete mac address references. (since bravia-tv==1.0.2)
    - Update tests.

* fix async_refresh_playing_info

* Improve code format

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Config_entry needs mac address for HA restart

    This was mistakenly taken out. Home-Assistant needs to store mac address in
    case restarted. TV needs to be on to acquire mac address. This is neccesary
    to allow TV to be turned on by Home-Assistant after Home-Assistant is
    restarted.

* Skip update() during state changes

    It is best for performance to skip updates during state change because
    bravia.turn_on() will commonly push async_update() beyond it's update
    interval.

* update tests

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-21 16:46:12 +02:00
Franck Nijhof 60f79c848a
Remove Pushetta integration () 2020-04-21 14:28:03 +02:00
Maciej Bieniek 2584a07452
Switch gios to async_on_remove () 2020-04-21 14:16:37 +02:00
Maciej Bieniek 6a4c25b668
Switch airly to async_on_remove () 2020-04-21 14:12:08 +02:00
Daniel Høyer Iversen d305247485
upgrade broadlink lib () 2020-04-21 07:44:41 -04:00
Franck Nijhof 782d2d0b75
Revert incorrect sync/async conversion in LCN integration () 2020-04-21 12:36:23 +02:00
Erik Montnemery 8e150ff1f5
Bump pychromecast ()
* Bump pychromecast

* Fix tests
2020-04-21 07:57:39 +02:00
Robert Svensson f12bd7ad99
UniFi - Logs spam with not adding disabled entity ()
* Proposed solution, unfortunately this makes the implementation less pretty

* Clarify why mac is registered in init
2020-04-21 06:17:14 +02:00
Franck Nijhof bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter () 2020-04-20 18:07:50 -07:00
Paulus Schoutsen 19be31d13a
Migrate HomeKit to use describe_event for logbook support () 2020-04-20 17:48:09 -07:00
Paulus Schoutsen 95357dfc55 Update translations 2020-04-20 16:33:54 -07:00
Paulus Schoutsen d560e8245a
Import state strings () 2020-04-20 16:25:35 -07:00
Pascal Vizeli 095d2718f3
Bump hass-nabucasa 0.34.1 () 2020-04-20 15:55:41 -07:00
Maciej Bieniek 9de57382cd
Switch brother to async_on_remove () 2020-04-20 14:00:46 -07:00
Leroy Shirto 6fc517fdbe
Update bt_smarthub component making it compatible with smarthub 2 ()
* 0.2.0 of the btsmarthub_devicelist package makes it compatable with BT's home hub 2.
The API has changed in the new version so this change also makes the component code compatible with the changes to the library.

* Update homeassistant/components/bt_smarthub/device_tracker.py

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/bt_smarthub/device_tracker.py

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* Remove dep on config in BTSmartHubScanner

This should make BTSmartHubScanner easier to test as you can pass in a mock smarthub_client

* Black format bt_smarthub

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-04-20 20:45:08 +02:00
J. Nick Koston 214aa3de08
Switch nexia to async_on_remove () 2020-04-20 13:39:33 -05:00
J. Nick Koston 01581ff92e
Switch myq to async_on_remove () 2020-04-20 13:31:50 -05:00
J. Nick Koston a5af746013
Switch powerwall to async_on_remove () 2020-04-20 13:21:29 -05:00
J. Nick Koston 4a788b62d1
Switch griddy to async_on_remove () 2020-04-20 13:21:00 -05:00
Mikael Svensson ccc818266b
Fix relative_time datetime object without timezone () 2020-04-20 10:29:12 -07:00
Finbarr Brady c9fba5db5e
Bump openwrt-luci-rpc version: 1.1.2 → 1.1.3 ()
* Update manifest.json

* Update requirements_all.txt
2020-04-20 18:28:29 +02:00
J. Nick Koston f0d553514d
Add vacuum support to homekit () 2020-04-20 08:00:52 -07:00
Alistair Galbraith d144228272
Add support for Lutron Keypad LEDs ()
* Add support for Lutron Keypad LEDs

* Removed unneeded attribute definitions

* Pull initial state from Lutron on startup

* Format updates per code review

* Altered caching code to only fetch state if needed

* Update homeassistant/components/lutron/switch.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Cloud pylint is also offended by this ;)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-20 15:44:55 +02:00
Gleb Sinyavskiy 9062d6e5e6
Improve the transmission integration ()
* Update state after adding a new torrent

* Use cached torrents list in check_started_torrent_info

* Add torrent_info to all sensors

* Add torrent_info for active torrents

* Fix typo

* Update codeowners

* Do not set eta if it's unknown

* Fix codeowners

* Extract TransmissionSpeedSensor

* Extract TransmissionStatusSensor

* Extract TransmissionTorrentsSensor

* Refactor device_state_attributes() and update()

* Remove unused methods

* Use async_on_remove

* Fix sensor update

* Add transmission.remove_torrent service

* Add transmission_removed_torrent event

* Fix naming

* Fix typo in services.yaml
2020-04-20 15:07:26 +02:00
escoand c87ecf0ff6
Add config flow and device registry to fritzbox integration ()
* add config flow

* fix pylint

* update lib

* Update config_flow.py

* remote devices layer in config

* add default host

* avoid double setups of entities

* remove async_setup_platform

* store entities in hass.data

* pass fritz connection together with config_entry

* fritz connections try no4 (or is it even more)

* fix comments

* add unloading

* fixed comments

* Update config_flow.py

* Update const.py

* Update config_flow.py

* Update __init__.py

* Update config_flow.py

* Update __init__.py

* Update __init__.py

* Update config_flow.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update config_flow.py

* add init tests

* test unloading

* add switch tests

* add sensor tests

* add climate tests

* test target temperature

* mock config to package

* comments

* test binary sensor state

* add config flow tests

* comments

* add missing tests

* minor

* remove string title

* deprecate yaml

* don't change yaml

* get devices async

* minor

* add devices again

* comments fixed

* unique_id fixes

* fix patches

* Fix schema

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-20 15:00:07 +02:00