Commit graph

15869 commits

Author SHA1 Message Date
Bram Kragten
b8c06ad019 Fix including from sub dir ()
The include path is now always relative to the root of the config dir.
2018-11-11 17:15:58 +01:00
Steven Looman
9c92151ad1 Upgrade async_upnp_client to 0.13.2 () 2018-11-11 15:10:03 +00:00
Daniel Høyer Iversen
f0a0ce504b
Better error handling in Tibber ()
* Better error handling in Tibber

* return if received error
2018-11-11 14:06:21 +01:00
Matthew Garrett
d9533127f9
Merge pull request from mjg59/avion
Bump python-avion dependency
2018-11-10 18:34:27 -08:00
Matthew Garrett
fa127188df Bump python-avion dependency
The current version of python-avion doesn't work correctly with Python 3.5.
Update it to one that does.
2018-11-10 18:03:55 -08:00
Chris Kacerguis
667b41dd4a Show battery_level as a percent vs a decimal () 2018-11-10 21:30:03 +01:00
Ville Skyttä
f236e14bd6 Upgrade pytest and pytest-sugar ()
* Upgrade pytest to 3.10.0

* Upgrade pytest-sugar to 0.9.2
2018-11-10 21:08:32 +01:00
Antoine Meillet
e75f9b36f9 add heartbeat support to mysensors () 2018-11-10 21:08:03 +01:00
cdce8p
132bb7902a Update HAP-python to 2.4.0 () 2018-11-10 18:33:45 +01:00
Tyler Page
8bd281d5a3 Update credstash.py ()
* Update credstash.py

* Update requirements_all.txt
2018-11-10 08:21:39 +01:00
Adam Belebczuk
210eab16da WeMo - Change name of discovery option () 2018-11-10 08:17:24 +01:00
uchagani
64ada1ea5a bump total connect client to 0.22 () 2018-11-09 20:04:28 -05:00
Daniel Høyer Iversen
14ad5c0006 Switchmate library update () 2018-11-09 23:41:44 +01:00
Joakim Sørensen
d34c47a9e1 Rename sensor.launch to sensor.launch_library () 2018-11-09 22:24:26 +01:00
Aaron Bach
f971309113
Add support for sensors from Flu Near You ()
* Add support for sensors from Flu Near You

* Added sensor for total reports with symptoms

* Member comments

* Member comments
2018-11-09 08:23:07 -07:00
Daniel Høyer Iversen
c571637176 Fix xiaomi binary_sensor warning ()
* Fix xiaomi binary_sensor warning

* Fix xiaomi binary_sensor warning
2018-11-09 11:36:00 +01:00
Abílio Costa
b803075eb4 fix last device ignored () 2018-11-09 10:41:08 +01:00
ehendrix23
ae85baf396 Restrict recorder query to include max age ()
* Update query to include maxAge

Updated the query from recorded to include MaxAge if set; reducing the amount of records retrieved that would otherwise be purged anyway for the sensor.

* Added newline in docstring

Added newline in docstring.

* Add test + small fix

Added test to ensure query works correctly
Query should be greater then or equal instead of greater then. Fixed.

* Fixed lint issue

Fixed lint issue.
2018-11-08 23:08:36 +00:00
Brig Lamoreaux
05eac915d1 Srpenergy ()
* Add srp_energy

* Update message on TypeError. Add check for None state.

* Add check for none in history

* Add srpenergy to Test requirements.

* Add srpenergy to requirments.

* Change = to ==.

* Change import for srpenergy

* Fix Flak8 errors

* Add srp to gen requirements script

* Change config name.

* Add daily usage test

* Add test for daily usage.

* Fix Flake8 message.

* Remove blank after docstring.

* Add srpenergy to coverage

* Bump requires version to srpenergy

* Fix type in coverage. Import from Sensor. Use dict.

* Update to 1.0.5. Check credentials on setup. Standalone test.

* Fix formating.

* Remove period. Rename _ variables.

* Fix rebase merge

* Add rebase requirement

* Improve Mock Patching.
2018-11-08 19:19:30 +01:00
horga83
8f107c46fe W800rf32 ()
* Initial commit of w800rf32 component and binary_sensor.

The W800 family is an X10 RF receiver used with keypads and motion sensors etc.

* Initial commit of w800rf32 switch platform.

The W800 family is an X10 RF receiver used with keypads and motion sensors etc.

* Remove unused code.

* Additions for w800rf32 component and platform code

* Fix w800rf32 minor lint issues and make sure gen_requirements.py correctlly adds w800rf32

* Added dispatch_connect/send and refactor somewhat

* Fix missed indentation lint

* Removed shared entity dict and use async_dispatch code

* Fix long line not caught by lint

* One more line too long, missed it

* Remove unused code and changes for async

* Remove  @callback that shouldn't be there.

* Remove switch platform, can't have read only switch.

* Remove unused CONF_DEBUG

* Remove used vars and make CONF_DEVICES required

* Move CONF_OFF_DELAY to platform, only used there
2018-11-08 18:49:00 +01:00
Joakim Sørensen
fd2987e551 Add new launch sensor to keep track of space launches. ()
* Add new launch sensor to keep track of space launches.

* Added attribution to Launch Library.

* Adds data class and throtle, reuse aiohttp session.

* Add one extra blank line before the new class..

* Change throttle to simpler SCAN_INTERVAL.

* Remove the usage of the LaunchData class.

* Bump pylaunches, remove . from log, fix line breaker for agency_country_code, remove CONF_ from ATTRIBUTION.
2018-11-08 16:37:11 +01:00
Matthias Urlichs
9472529d43 Doc fix: a circular dependency does not raise an error. ()
This is easier to handle than raising an exception: a circular
dependency causes multiple error entries in the log, which is what we
want.

This is harder to achieve with an exception. Since there is only one
user of this code, I choose to fix the documentation -- instead of
adding a lot of mostly-useless exception handling.

Closes: 
2018-11-08 12:59:58 +01:00
Paulus Schoutsen
f7f0a4e811
System groups ()
* Add read only and admin policies

* Migrate to 2 system groups

* Add system groups

* Add system groups admin & read only

* Dont' mutate parameters

* Fix types
2018-11-08 12:57:00 +01:00
Paulus Schoutsen
54b0cde52a
Remove Velbus climate platform () 2018-11-08 11:17:44 +01:00
Nick Touran
599542394a Added optional precision configuration option to generic_thermostat. ()
* Added optional precision configuration option to generic_thermostat.

* Added optional precision configuration option to generic_thermostat.

* Style update.
2018-11-08 09:39:35 +01:00
Joakim Sørensen
7fed49c4ab Bump pyhaversion to 2.0.2 () 2018-11-08 09:27:51 +01:00
Aaron Bach
954191c385
Add support for 17track.net package sensors ()
* Add support for 17track.net package sensors

* Updated CODEOWNERS

* Addressing comments

* Fixed requirements

* Member comments

* Revert "Member comments"

This reverts commit 61a19d7966.

* Member comments

* Member comments
2018-11-07 22:25:08 -07:00
Pascal Vizeli
e2fca0691e
Fix log error message ()
* Fix log error message

* Update __init__.py
2018-11-08 00:33:51 +01:00
Jeff Wilson
5bab0018f5 Make flux switch async ()
* Make flux switch async

* Fix line lengths

* Fix indentation

* Set tracker before await to avoid race condition

* Fix lint errors
2018-11-07 21:52:55 +01:00
Joakim Sørensen
0bf054fb59 Update pyruter to 1.1.0 to be able to reuse aiohttp session. ()
* Update pyruter to 1.1.0 to be able to reuse aiohttp session.

* Taged correct version of pyruter.
2018-11-07 13:54:33 -05:00
kennedyshead
aa4da479b5 Add upload and download sensors and component for asuswrt ()
* Adds upload and download sensors for asuswrt and makes it a component.

* Rebase

* removes warnings

* Fixing review issues

* More robust connection phase

* Generate dependencies

* Not needed try catch

* Rename sensors

* Revorked tests so they can be turned on again

* Using component setup

* Test through correct setup

* Forgot we dont need to worry about older py
2018-11-07 18:32:13 +01:00
Steven Looman
d93716bd84 Add SUPPORT_SEEK for DLNA DMR devices + now (better) providing media_image_url for DLNA DMR devices ()
* Upgrade to async_upnp_client==0.13.2, now (better) providing media_image_url for DLNA DMR devices

* Add SUPPORT_SEEK for DLNA DMR devices
2018-11-07 13:48:51 +01:00
Tsvi Mostovicz
f99701f41a Upgrade hdate to 0.7.5 ()
In 0.7.x the API to HDate was cleaned up so as to move logic from homeassistant to
the HDate external library.

This commit removes all the superfluous code, updates the required tests and changes the
requirement from version 0.6.5 to 0.7.5
2018-11-07 13:30:41 +01:00
Jorim Tielemans
29be78e08e Improve version sensor ()
* Validate value against valid list

* Show correct name

Constants in alphabetical order.
Added default name when not showing the local/current version.

* Add icon

Icon was already defined but not set

* Unnecessary "elif" after "return" (no-else-return)
2018-11-07 13:28:25 +01:00
majuss
ec732c896d Add support for Lupusec alarm control panel ()
* Adds support for Lupusec alarm control panel

* fixed various mostly cosmetic issues

* fixed generic type of binary sensors

* fixed some formatting; removed scan interval completely -> defaults now to 2 secs

* removed unused data caches; added check if binary sensor class exists

* cosmetics

* generic type fix

* small fix

* small fixes

* guard clause added

* small fixes
2018-11-07 12:51:12 +01:00
Paulus Schoutsen
00c1b40940 Add translations 2018-11-07 10:45:29 +01:00
Paulus Schoutsen
4287d1dd2d Bump frontend to 20181107.0 2018-11-07 10:45:15 +01:00
Oleksii Serdiuk
5cee9942a6 Darksky: Add icon to summary sensors ()
The icon changes dynamically, based on summary.
2018-11-07 10:01:05 +01:00
Adam Mills
65be458ce0 Update input component tests to async () 2018-11-07 09:56:32 +01:00
Adam Mills
ce069be16e Update manual ACP tests to async () 2018-11-07 09:56:24 +01:00
Adam Mills
0d7cb54872 Update litejet automation tests to async () 2018-11-07 09:56:10 +01:00
Adam Mills
6935b62487 Remove skipped device tracker tests () 2018-11-07 09:55:55 +01:00
mvn23
e698fc2553 Bump pyotgw to 0.3b1 ()
* Bump pyotgw to 0.3b1

* Update requirements_all.txt
2018-11-07 09:55:22 +01:00
Sebastian Muszynski
df3d82e0e3
Use async_add_executor_job at the xiaomi_miio platforms () 2018-11-07 09:03:35 +01:00
Johann Kellerman
35ae85e14e
SMA Guard against older pysma () 2018-11-07 08:52:51 +02:00
Pascal Vizeli
c89dade619
Migrate python-openzwave to homeassistant-pyozw ()
* Migrate python-openzwave to homeassistant-pyozw

* Update requirements_all.txt

* Fix requirements
2018-11-06 22:08:04 +01:00
Rohan Kapoor
bdba3852d0 Split out geofency with a component and platform ()
* Split out geofency with a component and platform

* Make geofency component/device_tracker more async

* Move geofency tests to new package

* Remove coroutine in geofency callback

* Lint

* Fix coroutine in geofency callback

* Fix incorrect patch
2018-11-06 20:12:03 +01:00
Joakim Sørensen
c41ca37a04 Add Norwegian Public Transportation sensor (Ruter). ()
* Add Norwegian Public Transportation sensor (Ruter).

* Corrected typo.

* change stopid to stop_id, actually use attributes, changed logging, corrected link, removed unused variable.

* Change to RuterSensor for the class, and move logic to me more readable.

* Use correct sensor class.

* Add return if blank list, remove else
2018-11-06 19:49:38 +01:00
Adam Mills
917ebed4c9 Update PR checklist with commented out code check ()
Along with hopefully helping resolve these actual problems, a nudge for people to look at their own code might help catch other quick fixes before anyone else has to review a PR.
2018-11-06 19:47:19 +01:00
Paulus Schoutsen
43ae57cc59 Lint 2018-11-06 19:27:52 +01:00