Commit Graph

22127 Commits (e700384cceba83f7f5e9222eee6dac2161585000)

Author SHA1 Message Date
jjlawren a644182b5e Save client identifier from Plex auth for future use (#27951)
* Save client identifier from auth for future use

* Bump requirements

* Stick with version 1
2019-10-22 23:32:57 -07:00
Ernst Klamer acc3646ef3 Add Solar-Log platform (#27036)
* Add Solar-Log sensor

* Codeowners update

* Update homeassistant/components/solarlog/manifest.json

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

* remove sunwatcher from gen_requirements_all.py

* remove sunwatcher from requirements_test_all.txt

* Remove scan_interval as configuration variable

I've set it to a fixed scan_interval of 1 minute. Removed the configuration option.

* Fix black format

* Config flow added (__init__.py)

* Config flow added (manifest.json)

* Config flow added (const.py)

* Config flow added (config_flow.py)

* Config flow added (strings.json)

* Config flow added (en.json translation)

* Config flow added (sensor.py rewritten)

* Config flow added (sensor.py)

* Config flow added (config_flows.py)

* resolve conflict config_flows.py

* Add tests

* add tests

* add tests

* Update .coverage to include all files for solarlog

* Fix await the unload

* Adjust icons, add http:// to default host

* Change icons

* Add http:// to host if not provided, fix await

* Add http:// to host if not provided, fix await

* Adjust tests for http:// added to host

* remove line

* Remove without http:// requirement

* Remove without http;// requirement
2019-10-22 23:31:43 -07:00
Paulus Schoutsen b27dc5bd39 Merge remote-tracking branch 'origin/master' into dev 2019-10-22 23:22:24 -07:00
Diefferson Koderer Môro 6025630772 Move imports in melissa component (#28021)
* Move imports in melissa component

* Fix tox tests
2019-10-22 23:19:00 -07:00
Nikolay Vasilchuk 734704c1f7 Squeezebox LMS reconnect (#27378)
* Fix

* Review
2019-10-22 23:18:00 -07:00
Nikolay Vasilchuk 62a3dc1a94 Open Hardware Monitor Sensor reconnect (#28052)
* raise PlatformNotReady

* Don't show errors on reconnect
2019-10-22 23:17:34 -07:00
Diefferson Koderer Môro b4054add61 Move imports in wake_on_lan component (#28100)
* Move imports in wake_on_lan component

* Fix tox tests
2019-10-22 23:14:52 -07:00
Ville Skyttä c8b2860167 Fix bootstrap dev dependencies message (#28114)
https://github.com/home-assistant/home-assistant/pull/28060#discussion_r337701541
2019-10-22 23:12:57 -07:00
Santobert 50e9a9df4f Timer reproduce state (#28117) 2019-10-22 23:12:17 -07:00
Matt Schmitt f67813e145 Fix service descriptions (#28122) 2019-10-22 23:09:28 -07:00
Lukas 65263bdef9 Fix #28104 - CalDav support for floating datetimes (#28123)
* Fix #28104 - CalDav support for floating datetimes

Timzones are optional in CalDav

It is possible that an entry contains neither a TZID, nor is an UTC time.
When this is the case, it should be treated as a floating date-time value,
which represent the same hour, minute, and second value regardless of which
time zone is currently being observed.

For Home-Assistant the correct timezone therefore is whatever is configured
as local time in the settings.

See https://www.kanzaki.com/docs/ical/dateTime.html

* Revert "Fix #28104 - CalDav support for floating datetimes"

This reverts commit cf32a6e390.

* add test case: floating events fail with error without patch

* Fix #28104 - CalDav support for floating datetimes

Timzones are optional in CalDav

It is possible that an entry contains neither a TZID, nor is an UTC time.
When this is the case, it should be treated as a floating date-time value,
which represent the same hour, minute, and second value regardless of which
time zone is currently being observed.

For Home-Assistant the correct timezone therefore is whatever is configured
as local time in the settings.

See https://www.kanzaki.com/docs/ical/dateTime.html

* style fix
2019-10-22 23:08:38 -07:00
Santobert 703cd96186 Add improved scene support to the input_datetime integration (#28105)
* input_datetime reproduce state

* simplify service decision
2019-10-22 23:03:38 -07:00
javicalle 8bdec13bad Move imports in hue component (#28121) 2019-10-22 22:58:57 -07:00
SteveDinn 25fd930d67 Add template filters to convert objects to and from JSON strings (#27909)
* Added filters to convert objects to and from JSON strings.

* Added extra spacing.

* Removed try/catch to get native exceptions

* Added tests.
2019-10-22 22:51:29 -07:00
Matt Kasa ab22c61764 Support SmartStrip type devices (HS300, HS107) in tplink component (#26220)
* Add support for SmartStrip type devices (HS300, HS107) to tplink component

* Incorporate feedback from @MartinHjelmare using changes suggested by @shbatm

- Setting `_state` now uses a list comprehension
- `_alias` will use aliases from the Kasa app
- `_device_id` will be set to `_mac` for single plugs to retain backwards compatibility
2019-10-22 22:46:18 -07:00
Fredrik Erlandsson 09d8a4204a Add support for resource_template for rest sensor (#27869)
* add support for resource_template

* fix tests

* updated tests and xor(CONF_RESOURCE_TEMPLATE, CONF_RESOURCE)
2019-10-22 22:43:28 -07:00
Raman Gupta 4cb984842a Support custom source type for MQTT device tracker (#27838)
* support custom source type for MQTT device tracker

* fix typo

* add abbreviation
2019-10-22 22:26:29 -07:00
Marc Hörsken e3f0c904b0 Add option to specify mDNS advertised IP address for HomeKit Bridge (#26791)
* Add options to specify advertised IP and MAC for HomeKit Bridge

This makes use of HAP-python's new feature in version 2.6.0
that allows to specify the mDNS advertised IP and MAC address.

This is a requirement for the following use cases:
- Running Home Assistant behind a NAT, e.g. inside Docker.
- Running it on a system with multiple interfaces there
  the default IP address, DNS entry and hostname diverge.

The forwarding of the required mDNS packets can be done with
an avahi-daemon based gateway, e.g. by using enable-reflector=yes.

Specifying the MAC address makes it possible to identify an
accessory in case HA is run inside a ephemeral docker container.

Whitespace changes were performed due to black and flake8.

* Update tests for HomeKit Bridge due to IP and MAC advertising

Whitespace changes were performed due to black and flake8.

* Remove the possibility to set the MAC address of the HomeKit Bridge

Since the MAC address is a random device ID, there is no need
for the user to be able to set a custom MAC address value for it.

Whitespace changes were performed due to black and flake8.
2019-10-22 22:06:21 -07:00
ochlocracy da094e09fa Implement ToggleController, RangeController, and ModeController in alexa (#27302)
* Implement AlexaToggleController, AlexaRangeController, and AlexaModeController interfaces.

* Implement AlexaToggleController, AlexaRangeController, and AlexaModeController interfaces.

* Unkerfuffled comments to please the pydocstyle gods.

* Unkerfuffled comments in Tests to please the pydocstyle gods.

* Added additional test for more coverage.

* Removed OSCILLATING property check from from ModeController.

* Added capability report tests for ModeController, ToggleController, RangeController, PowerLevelController.

* Update homeassistant/components/alexa/capabilities.py

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

* Update homeassistant/components/alexa/capabilities.py

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

* Corrected mis-spelling of AlexaCapability class.

* Changed instance from method to property in AlexaCapability class.

* Refactored to add {entity.domain}.{entity.attribute} to the instance name.

* Improved type handling for configuration object.
Added additional test for configuration object.

* Added Tests for unsupported domains for ModeController and RangeController

* Made changes to improve future scaling for other domains.

* Split fan range to speed maps into multiple constants.
2019-10-22 22:01:03 -07:00
HomeAssistant Azure dc3aa43f73 [ci skip] Translation update 2019-10-23 00:32:15 +00:00
Franck Nijhof adb15286b4 Fix test coverage, reverting top level import ptvsd (#28118) 2019-10-22 16:13:34 -07:00
Erik Montnemery 4700d647b0 Minor tweaks for sensor device automations (#27829)
* Minor tweaks for sensor device automations

* Change unit_of_measurement to suffix in extra_fields

* Address review comment
2019-10-22 11:40:07 -07:00
Diefferson Koderer Môro 04dbe5bc84 Move imports in dsmr component (#27974)
* Move imports in dsmr component

* Review

* Fix tests
2019-10-22 18:50:49 +02:00
bastshoes 0226b76e0a Add support SQL VACUUM for PostgeSQL (#28106)
* Add support SQL VACUUM for PostgeSQL

VACUUM PostgreSQL DB if repack is true

* Update tests
2019-10-22 08:39:26 -07:00
Santobert c2c9213e9b Add improved scene support to the counter integration (#28103)
* Add improved scene support to the counter integration

* Remove comment
2019-10-22 08:28:06 -07:00
Pascal Roeleven 37bf577284 Add support for more Orange Pi devices (#28109)
* Bump OPi.GPIO to 0.4.0

* Move imports to top-level
2019-10-22 08:23:39 -07:00
Mark Coombes 09b4f65515 Add modelnumber for ecobee4 (#28107) 2019-10-22 08:22:42 -07:00
Fabian Affolter acee87bef6 Support to use Whatsapp numbers (fixes ##28065) (#28078) 2019-10-22 09:00:58 +02:00
Diefferson Koderer Môro 77d55a3b15 Move imports in isy994 component (#28004) 2019-10-21 22:40:49 -07:00
Diefferson Koderer Môro 4a54b130cb Move imports in ptvsd component (#28087) 2019-10-21 22:39:36 -07:00
Diefferson Koderer Môro 3692c7496e Move imports in gtfs component (#27999)
* Move imports in gtfs component

* Fix pylint
2019-10-21 22:38:33 -07:00
Diefferson Koderer Môro ff17bb4a56 Move imports in knx component (#28008)
* Move imports in knx component

* Fix pylint
2019-10-21 22:38:21 -07:00
Diefferson Koderer Môro 6c18bbcf04 Move imports in lastfm component (#28010)
* Move imports in lastfm component

* Fix pylint
2019-10-21 22:38:01 -07:00
Diefferson Koderer Môro 5d317dc096 Move imports in miflora component (#28025)
* Move imports in miflora component

* Fix pylint
2019-10-21 22:37:48 -07:00
Diefferson Koderer Môro 1a48c347a4 Move imports in mitemp_bt component (#28026)
* Move imports in mitemp_bt component

* Fix pylint
2019-10-21 22:37:31 -07:00
Diefferson Koderer Môro a8c6b04906 Move imports in opencv component (#28042)
* Move imports in opencv component

* Fix pylint
2019-10-21 22:37:09 -07:00
Diefferson Koderer Môro 87cc661087 Move imports in pocketcasts component (#28084) 2019-10-21 22:36:46 -07:00
Diefferson Koderer Môro 1313ec4ec8 Move imports in proliphix component (#28085) 2019-10-21 22:36:35 -07:00
Diefferson Koderer Môro 2d36e9c08e Move imports in prometheus component (#28086) 2019-10-21 22:35:43 -07:00
Diefferson Koderer Môro 0193207b5c Move imports in recollect_waste component (#28089) 2019-10-21 22:35:25 -07:00
Diefferson Koderer Môro 40fbfe7a93 Move imports in rejseplanen component (#28091) 2019-10-21 22:35:05 -07:00
Diefferson Koderer Môro 3e8f2bf2fc Move imports in remember_the_milk component (#28092) 2019-10-21 22:34:51 -07:00
Diefferson Koderer Môro d9b890a402 Move imports in repetier component (#28093) 2019-10-21 22:34:35 -07:00
Diefferson Koderer Môro 4a3d6208ae Move imports in rpi_pfio component (#28094) 2019-10-21 22:33:23 -07:00
Diefferson Koderer Môro 828bf1b400 Move imports in sesame component (#28095) 2019-10-21 22:33:02 -07:00
Diefferson Koderer Môro f440259edc Move imports in seven_segments component (#28096) 2019-10-21 22:32:53 -07:00
Diefferson Koderer Môro 953f31dd55 Move imports in shiftr component (#28097) 2019-10-21 22:32:37 -07:00
Diefferson Koderer Môro d9cb9601aa Move imports in skybeacon component (#28099) 2019-10-21 22:31:58 -07:00
Diefferson Koderer Môro 1111e150f4 Move imports in shodan component (#28098) 2019-10-21 22:31:41 -07:00
HomeAssistant Azure 2cc039dbc4 [ci skip] Translation update 2019-10-22 00:32:10 +00:00