Andrey
8ee3b535ef
Add disallow_untyped_calls to mypy check. ( #15661 )
...
* Add disallow_untyped_calls to mypy check.
* Fix generator
2018-07-31 15:00:17 +01:00
Andrey
140a874917
Add typing to homeassistant/*.py and homeassistant/util/ ( #15569 )
...
* Add typing to homeassistant/*.py and homeassistant/util/
* Fix wrong merge
* Restore iterable in OrderedSet
* Fix tests
2018-07-23 10:24:39 +02:00
Andrey
e62e2bb131
Make sure that only pypi dependencies are used ( #15490 )
2018-07-18 12:16:27 +02:00
Andrey
24d2261060
Add check_untyped_defs ( #15510 )
...
* Add check_untyped_defs
* Change to regular if-else
2018-07-18 00:28:44 +02:00
Andrey
5995c6a2ac
Switch to own packaged version of pygtfs ( #15040 )
2018-07-15 21:32:20 +02:00
Andrey
e60f9ca392
More typing ( #15449 )
...
## Description:
More typing improvements.
Switch to using `mypy.ini` for flexibility
Add `warn_return_any` check except in `homeassistant.util.yaml` that does typing hacks. Fix some type annotations as resulting from this check and ignore others were fixing is hard.
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-13 20:14:45 +03:00
Andrey
c2fe0d0120
Make typing checks more strict ( #14429 )
...
## Description:
Make typing checks more strict: add `--strict-optional` flag that forbids implicit None return type. This flag will become default in the next version of mypy (0.600)
Add `homeassistant/util/` to checked dirs.
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-13 13:24:51 +03:00
Andrey
23f1b49e55
Add python 3.8-dev to travis and tox ( #15347 )
...
* Add Python 3.8-dev tox tests.
* Allow failures on 3.8-dev
* Allow failures on 3.8-dev take2
* Only run on pushes to dev
2018-07-13 11:37:03 +02:00
Andrey
02238b6412
Add python 3.7 to travis and tox ( #14523 )
...
* Add python 3.7 to travis and tox
* Use pyyaml from github
* Don't version constraints
* Fix version tag
* Change to new pyyaml release
* Python 3.7 requires xenial
* Fix namespace detection
* Use correct RegEx type
* Update pexpect to 4.6
* Use correct validation for dictionaries
* Disable Py37 incompatible packages
* Upgrade all pexpect to 4.6
* Add explicit None as default param
2018-07-07 10:48:02 -04:00
Andrey
184d0a99c0
Switch to own packaged version of suds-passworddigest ( #15261 )
2018-07-03 12:43:24 +02:00
Andrey
6c77702dcc
Switch to own packaged version of pylgnetcast ( #15042 )
...
## Description:
Switch to own packaged version of pylgnetcast
Request to make a pypi package didn't get any response: https://github.com/wokar/pylgnetcast/issues/1
**Related issue (if applicable):** #7069
2018-07-02 10:57:26 +03:00
Andrey
96d5684a89
Switch to pypi version of pybotvac ( #15115 )
2018-06-24 11:06:25 +02:00
Andrey
1e7333eeb6
Switch to own packaged version of pyflic ( #15041 )
2018-06-19 10:31:21 +02:00
Andrey
7cd620d30f
Switch upstream adafruit package ( #15038 )
2018-06-19 10:30:43 +02:00
Andrey
6b908b6f4e
Switch nuimo to a hopefully working pypi version ( #15006 )
2018-06-17 09:41:49 -04:00
Andrey
e3fcf46566
Switch to own packaged version of braviarc ( #15009 )
2018-06-17 13:07:10 +02:00
Andrey
1117371b31
Switch to own packaged version of anel_pwrctrl ( #15011 )
2018-06-17 13:05:25 +02:00
Andrey
a013908115
Switch to own packaged version of spotipy ( #14997 )
2018-06-16 17:36:09 -04:00
Andrey
656eae288e
Switch to own packaged version of spotipy ( #14997 )
2018-06-16 15:52:23 -04:00
Andrey
6c3e2021df
Give unknown zwave nodes a better name ( #14353 )
...
* Give unknown zwave nodes a better name
* Update util.py
2018-05-28 21:49:38 -04:00
Andrey
d1228d5cf4
Look at registry before pulling zwave config values ( #14408 )
...
* Look at registry before deciding on ID for zwave values
* Reuse the new function
2018-05-12 17:45:36 -04:00
Andrey
7aec098a05
Bring back typing check. Meanwhile just for homeassistant/*.py ( #14410 )
...
* Bring back typing check. Meanwhile just for homeassistant/.py
* Change follow-imports to silent. Add a few more checks.
2018-05-12 17:44:53 -04:00
Andrey
f168226be9
Update to sensibo 1.0.3 with better error reporting ( #14380 )
2018-05-10 21:11:02 +02:00
Andrey
10505d542a
Make sure zwave nodes/entities enter the registry is proper state. ( #14251 )
...
* When zwave node's info is parsed remove it and re-add back.
* Delay value entity if not ready
* If node is ready consider it parsed even if manufacturer/product are missing.
* Add annotations
2018-05-08 15:30:28 -04:00
Andrey
f72d568374
Add unique_id to zwave node entity ( #14201 )
...
* Add unique_id to zwave node entity
* Wait 30s before adding zwave node if its unique_id is not ready
* Use only node_id in unique_id. Update name, manufacturer, and product attributes on node update.
2018-05-02 16:10:26 -04:00
Andrey
6314aabc6f
Remove andrey-git from requirements monitoring ( #13547 )
2018-03-30 15:16:29 +02:00
Andrey
3dfc49d311
Make Sensibo climate registry_entity compliant ( #13086 )
2018-03-11 17:19:25 +01:00
Andrey
981f6fa027
Fix sensibo default IDs to be according to schema ( #12837 )
2018-03-02 11:22:26 -08:00
Andrey
e20e0425b1
Fix sensibo default IDs to be according to schema ( #12837 )
2018-03-02 11:16:48 -08:00
Andrey
fcf97524a2
Fix light template to return brightness as int ( #12447 )
2018-02-17 13:58:55 -08:00
Andrey
13d6e56106
Fix light template to return brightness as int ( #12447 )
2018-02-16 09:32:11 -08:00
Andrey
2b9bb7963d
Update min js=latest version ( #12091 )
2018-02-07 23:14:31 -08:00
Andrey
df24ecf395
Add "write" service to system_log ( #11901 )
...
* Add API to write error log
* Move write_error api to system_log.write service call
* Restore empty line
2018-01-26 20:32:06 -08:00
Andrey
8332d4e359
Add "write" service to system_log ( #11901 )
...
* Add API to write error log
* Move write_error api to system_log.write service call
* Restore empty line
2018-01-26 12:41:52 +01:00
Andrey
273db75248
Always load yr picture from https ( #11796 )
2018-01-19 13:06:34 +01:00
Andrey
5ef7a8d55a
Fix sensibo function names ( #11797 )
2018-01-19 13:04:53 +01:00
Andrey
a35d05ac7e
Remove aux_heat support from Sensibo now that UI supports on/off ( #11579 )
2018-01-11 23:25:15 +01:00
Andrey
6cc285aea5
Add sensibo_assume_state service to Sensibo climate ( #11567 )
2018-01-10 14:04:35 -08:00
Andrey
4512a972d1
Climate: fix missing "|" ( #11441 )
...
* Add on/off supported feature to climate
* Lint
* Fix missing |
* lint
2018-01-04 02:26:11 +02:00
Andrey
eb00e54eba
Add on/off supported feature to climate ( #11379 )
...
* Add on/off supported feature to climate
* Lint
2018-01-03 23:10:54 +01:00
Andrey
ab9ffc4f05
Report Sensibo as off when it is off ( #11281 )
2017-12-23 11:10:54 +01:00
Andrey
240098dd7e
Change manifest path to /states as this is the path / actually sets. ( #11274 )
2017-12-22 21:05:15 -08:00
Andrey
20f1e1609f
In dev mode expose only relevant sources ( #11026 )
2017-12-08 17:25:16 -08:00
Andrey
f7c2ec19ef
Change default js version to auto ( #10999 )
2017-12-08 09:16:26 -08:00
Andrey
22c36f0ad3
Require FF43 for latest js ( #10941 )
...
* Require FF43 for latest js
`Array.prototype.includes` added in Firefox 43
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
* Update __init__.py
2017-12-05 22:11:20 -08:00
Andrey
87fe674c70
Require FF43 for latest js ( #10941 )
...
* Require FF43 for latest js
`Array.prototype.includes` added in Firefox 43
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
* Update __init__.py
2017-12-05 22:09:41 -08:00
Andrey
4ebc52ab52
Reload groups after saving a change via config API ( #10877 )
2017-12-01 12:53:46 -08:00
Andrey
8afeef2f36
Serve latest extra_html in dev mode ( #10863 )
2017-12-01 12:53:15 -08:00
Andrey
99ea2c17a1
Add useragent-based detection of JS version ( #10776 )
...
* Add useragent-based detection of JS version
* Keep es5 as default meanwhile
* Update test
2017-11-28 22:53:12 -08:00
Andrey
8c5d6ee9c3
Fix for Sensibo with missing temperature ( #10801 )
...
* Fix for sensibo woth missing temperature
* Use new temperatureUnit API field
2017-11-27 21:05:43 -08:00
Andrey
d8bf15a2f5
system_log improvements ( #10709 )
...
* system_log improvements
* Don't use ModuleNotFoundError which is 3.6+
* Don't use FrameSummary which was added in 3.5
* Don't trace stack for exception logs
* Handle test error in Python 3.4
2017-11-25 16:22:41 +02:00
Andrey
b86110a15d
Print entity type in "too slow" warnings ( #10641 )
...
* Update entity.py
* Update entity.py
2017-11-17 22:00:10 -08:00
Andrey
f43092c563
Print entity type in "too slow" warnings ( #10641 )
...
* Update entity.py
* Update entity.py
2017-11-17 17:36:18 +01:00
Andrey
072ed7ea13
Allow to pass YandexTTS options via sevice call ( #10578 )
2017-11-16 09:10:25 -08:00
Andrey
d5cba0b716
Allow unicode when dumping yaml ( #10607 )
2017-11-15 18:24:08 -08:00
Andrey
4420f11d9d
Fix import in tests ( #10525 )
2017-11-11 22:24:43 +02:00
Andrey
5e92fa3404
Add an option to serve ES6 JS to clients ( #10474 )
...
* Add an option to serve ES6 JS to clients
* Rename es6 to latest
* Fixes
* Serve JS vrsions from separate dirs
* Revert websocket API change
* Update frontend to 20171110.0
* websocket: move request to constructor
2017-11-10 23:02:06 -08:00
Andrey
ae34640a80
Use theme color in loading screen. ( #10248 )
2017-10-31 13:30:50 +01:00
Andrey
fc291dd5ab
Don't use pypi package in dev mode. Allow non-fingerprinted mdi. ( #10144 )
2017-10-26 22:28:07 -07:00
Andrey
2a2ee81957
Match test requirements by full package name. ( #9764 )
2017-10-08 20:49:51 -07:00
Andrey
c09b7b5d6d
Add andrey-git to codeowners ( #9718 )
2017-10-07 17:58:45 +02:00
Andrey
499382a9a9
Add history_graph component ( #9472 )
...
* Add support for multi-entity recent fetch of history. Add graph component
* Rename graph to history_graph. Support fast fetch without current state.
* Address comments
2017-09-23 10:01:48 -07:00
Andrey
bb37294047
Allow panels with external URL ( #9214 )
...
* Allow panels with external URL
* Update comment
2017-08-30 23:21:24 -05:00
Andrey
c367021aa4
Allow specifying custom html urls to load. ( #9150 )
...
* Allow specifying custom html urls to load.
* Change add_extra_html_urls to accept a single URL
2017-08-27 09:07:58 -07:00
Andrey
c73338bf3e
Backend changes for customize config panel. ( #9134 )
...
* Backend changes for customize config panel.
* Backend changes for customize config panel.
* Add customize.yaml to default config
* Precreate customize.yaml
* Add tests
2017-08-26 10:02:32 -07:00
Andrey
cd795489ca
Turn foscam verbose mode off ( #8967 )
2017-08-13 21:54:20 -07:00
Andrey
a8a037db49
Fix zwave power_consumption attribute ( #8968 )
2017-08-13 21:54:19 -07:00
Andrey
a0ddb24245
Turn foscam verbose mode off ( #8967 )
2017-08-13 18:16:38 -07:00
Andrey
23273d3e88
Fix zwave power_consumption attribute ( #8968 )
2017-08-13 18:15:59 -07:00
Andrey
c895f1f1db
When Sonos gets a tts source - dont't show an image ( #8777 )
2017-08-03 17:39:11 +03:00
Andrey
3377f30613
Make themes API work even when themes are not defined. ( #8473 )
2017-07-15 19:43:06 -07:00
Andrey
6ca828fd14
Make themes API work even when themes are not defined. ( #8473 )
2017-07-14 11:26:26 -07:00
Andrey
b8eaec565a
Add kiosk-mode panel ( #8457 )
2017-07-13 09:11:49 -07:00
Andrey
a65f22378e
Backend support for themes ( #8419 )
...
* Backend support for themes
* Fix test
* Add theme_updated event
* Shorten name
* Add tests
2017-07-12 18:08:13 -07:00
Andrey
60dcc9a5c0
Switch pyW215 to pypi ( #8445 )
2017-07-11 22:44:01 +02:00
Andrey
c5bf4fe339
Properly handle the case when a group includes itself. ( #8398 )
...
* Properly handle the case when a group includes itself.
* Fix lint
2017-07-08 09:20:11 -07:00
Andrey
cf924cd14d
Update waqi sensor ( #8385 )
2017-07-07 07:55:58 -07:00
Andrey
d0720ac699
Add PlatformNotReady support for Sensibo ( #8252 )
2017-06-30 08:50:25 +02:00
Andrey
7b8ad1d365
Switch rachiopy to pypi ( #8040 )
...
* Switch rachiopy t pypi
* Update rachio.py
* Update requirements_all.txt
2017-06-22 13:34:00 +02:00
Andrey
b2d6ff9783
More updates to zwave services.yaml file ( #8083 )
2017-06-18 22:38:14 -07:00
Andrey
bf495edbb5
Add to zwave services descriptions ( #8072 )
2017-06-17 10:59:18 -07:00
Andrey
32a84f1466
Add to zwave services descriptions ( #8072 )
2017-06-17 10:02:37 -07:00
Andrey
1fde234c78
Fix some warnings found by quantifiedcode ( #8027 )
...
* Cleanup of warnings by quantifiedcode
* Fix lint
* Fix test
* Delete insteon_hub component
* Also update .coveragerc
2017-06-16 22:44:14 +03:00
Andrey
02f7eb9675
Allow device_tracker platforms to specify picture and icon upon discovery ( #8018 )
...
* Allow device tracker platforms to specify picture
* Allow device tracker to specify icon during discovery
* Clean up and add tests
* Fix lint
* Fix test
2017-06-14 14:39:18 +02:00
Andrey
3d8b7a4122
Switch pymyq to pypi ( #7884 )
2017-06-03 17:12:36 +02:00
Andrey
927024714b
Zwave: Apply refresh_node workaround on 1st instance only ( #7579 )
...
* Apply refresh_node workaround on 1st instance only
* Add another test
2017-05-21 17:33:42 +03:00
Andrey
44edf3e105
Switch pymodbus to pypi ( #7677 )
2017-05-20 21:19:22 +02:00
Andrey
5b3ef0f76f
Treat swing and fan level as optional in Sensibo Climate. ( #7560 )
2017-05-12 18:28:58 +03:00
Andrey
f4915ddb0b
Switch basicmodem and python-roku to pypi ( #7514 )
2017-05-09 20:23:19 -07:00
Andrey
1cd51bc6a8
Switch onkyo to pypi ( #7497 )
2017-05-09 08:13:29 +03:00
Andrey
2c1df75c07
Switch russound, pymysensors, and pocketcasts to pypi ( #7449 )
...
* Switch russound to pypi
* Switch pymysensors to pypi
* Switch pocketcasts to pypi
2017-05-07 02:22:38 +02:00
Andrey
403a721e91
Comment out opencv-python that is not installable on arm ( #7426 )
...
* Comment out opencv-python that is not installable on arm
* Disable import-error
2017-05-03 21:08:21 +03:00
Andrey
11dc7246af
Add Sensibo climate platform ( #7379 )
...
* Add Sensibo climate platform
* Force update after running a service
* Add sensibo to .coveragerc
* Use 10s timeout
* Fix schema. Remove print.
* Better handle unit conversions.
2017-05-02 17:23:36 -07:00
Andrey
570c5549a9
Clean up requirements ( #7391 )
2017-05-02 09:15:02 -07:00
Andrey
b6ee2332f4
Better thread safety in zwave node_entity ( #7087 )
...
* Better thread safety
* Update node_entity.py
2017-04-13 23:45:27 +03:00
Andrey
5e18c997f7
Add product_name attribute to zwave nodes. ( #7071 )
2017-04-12 21:12:37 +03:00
Andrey
5d1dbd61b2
Preserve customize glob order. ( #6963 )
...
* Preserve customize glob order.
* add tests
2017-04-08 04:50:52 -07:00
Andrey
f96e06a2c2
Preserve customize glob order. ( #6963 )
...
* Preserve customize glob order.
* add tests
2017-04-06 22:39:35 -07:00
Andrey
fb8323f48d
Remove zwave cover invert workaround. Use config instead. ( #6832 )
2017-03-28 23:01:29 +03:00
Andrey
8a86ec5b74
Add zwave per-node entity. ( #6690 )
...
* Add zwave per-node entity.
* Disable lint import error
* Add tests for base class
* More tests
* More tests
* Sort .coveragerc
* more tests
* Move location, battery and wakeup to node entity
* More tests
* Cleanup
* Make zwave node entity visible by default
* Remove battery sensor
* Fix tests
2017-03-23 08:37:20 -07:00