Ville Skyttä
b7c336a687
Pylint cleanups ( #15626 )
...
* Pylint 2 no-else-return fixes
* Remove unneeded abstract-class-not-used pylint disable
2018-07-23 10:16:05 +02:00
Ville Skyttä
2f7b79764a
More pylint 2 fixes ( #15565 )
...
## Description:
More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).
## Checklist:
- [ ] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-20 11:45:20 +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
Ville Skyttä
4bd7a7eee3
Remove inline pylint disables for messages disabled in pylintrc ( #14978 )
2018-06-16 00:15:46 +02:00
Paulus Schoutsen
ad9621ebe5
Use hass iconset ( #14185 )
2018-06-05 10:49:54 -04:00
Fabian Affolter
954e4796b8
Use ATTR_NAME from const.py ( #14450 )
2018-05-14 13:05:52 +02:00
Otto Winter
a4bf421044
Convert more files to async/await syntax ( #14142 )
...
* Move more files to async/await syntax
* Attempt Work around pylint bug
Using lazytox :P
2018-04-28 19:26:20 -04:00
Paulus Schoutsen
170b8671b9
Fix logbook JSON serialize issue ( #13229 )
...
* Fix logbook JSON serialize issue
* Address flakiness
* Lint
* deflake ?
* Deflake 2
2018-03-15 10:54:22 -07:00
Anders Melchiorsen
54f8f1223f
Optimize logbook SQL query ( #12881 )
2018-03-03 13:54:55 -08:00
Anders Melchiorsen
191f24b2b9
Revert optimized logbook SQL ( #12762 )
2018-02-28 23:01:31 -08:00
Anders Melchiorsen
9ca67c36cd
Optimize logbook SQL query ( #12608 )
2018-02-25 11:33:53 -08:00
Anders Melchiorsen
f9ee29a5cd
Logbook speedup ( #12566 )
...
* Optimize logbook filtering
* Avoid State construction during Events filtering
* Move tuple creation out of loop
* Add benchmark
2018-02-21 10:35:55 -08:00
Anders Melchiorsen
fb985e2909
Build JSON in executor ( #12536 )
2018-02-20 12:37:01 +01:00
Otto Winter
8dcfd35b8b
Spelling fixes ( #12041 )
...
* Spelling fixes
*Lots* of them.
* Spelling breaking changes
* Fix lint errors
2018-01-29 23:37:19 +01:00
Adam Mills
c4d71e934d
Perform logbook filtering on the worker thread ( #11161 )
2017-12-16 00:04:27 -08:00
Adam Mills
583e57042b
Core POC support for polymer i18n ( #6344 )
...
* Core POC support for polymer i18n
* Add gulp to build_frontend
* Remove frontend build
* Updated translations format
* Eliminate translation namespace from panel names
* Only register translations path in dev mode
2017-10-26 21:46:21 -07:00
Paulus Schoutsen
2bdad5388b
Consolidate frontend ( #9915 )
...
* Consolidate frontend
* Remove home-assistant-polymer submodule
* Convert to using a pypi package for frontend
* fix release script
* Lint
* Remove unused file
* Remove frontend related scripts
* Move hass_frontend to frontend REQUIREMENTS
* Fix tests
* lint
* Address comments
* Lint + fix tests in py34
* Fix py34 tests again
* fix typo
2017-10-24 19:36:27 -07:00
Paulus Schoutsen
5779d64e98
Fix some issues for PyLint 1.7.2 ( #8356 )
...
* Fix some issues for PyLint 1.7.2
* More fixes
* Revert position change for cover
2017-07-05 20:02:16 -07:00
Paulus Schoutsen
f43db3c615
Replace executor with async_add_job ( #7658 )
...
* Remove executor
* Lint
* Lint
* Fix tests
2017-05-26 08:28:07 -07:00
Adam Mills
b805d8a844
Hide proximity updates in logbook ( #7549 )
2017-05-11 19:37:32 -07:00
Nuno Sousa
20ded1ba3e
Add datadog component ( #7158 )
...
* Add datadog component
* Improve test_invalid_config datadog test
* Use assert_setup_component for test setup
2017-05-06 00:34:40 +02:00
Fabian Affolter
3ee4d1060f
Update docstrings ( #7361 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update tomato.py
* Update isy994.py
* Lint + fix tests
* Lint
2017-04-29 22:04:49 -07:00
Paulus Schoutsen
61909e873f
Feature/reorg recorder ( #6237 )
...
* Re-organize recorder
* Fix history
* Fix history stats
* Fix restore state
* Lint
* Fix session reconfigure
* Move imports around
* Do not start recording till HASS started
* Lint
* Fix logbook
* Fix race condition recorder init
* Better reporting on errors
2017-02-26 14:38:06 -08:00
Pascal Vizeli
106b7a9d8f
Cleanup run_callback_threadsafe ( #6187 )
...
* Cleanup run_callback_threadsafe
* fix spell
* Revert image_processing, they need to wait for update
2017-02-23 12:57:25 -08:00
Adam Mills
1f6f9a1677
Filter new entities from logbook ( #5402 )
2017-01-19 23:30:47 -08:00
Daniel Perna
77d568dc47
Fixed incorrect event-order ( #4605 )
2016-11-27 22:29:21 -08:00
Paulus Schoutsen
32ffd006fa
Reorganize HTTP component ( #4575 )
...
* Move HTTP to own folder
* Break HTTP into middlewares
* Lint
* Split tests per middleware
* Clean up HTTP tests
* Make HomeAssistantViews more stateless
* Lint
* Make HTTP setup async
2016-11-25 13:04:06 -08:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Paulus Schoutsen
519d9f2fd0
async HTTP component ( #3914 )
...
* Migrate WSGI to asyncio
* Rename wsgi -> http
* Python 3.4 compat
* Move linting to Python 3.4
* lint
* Lint
* Fix Python 3.4 mock_open + binary data
* Surpress logging aiohttp.access
* Spelling
* Sending files is a coroutine
* More callback annotations and naming fixes
* Fix ios
2016-10-23 23:48:01 -07:00
Adam Mills
7d32e5eeeb
Logbook filtering of automations by entity_id ( #3927 )
...
* Logbook filtering of automations by entity_id
* Trigger action function parameters required
2016-10-18 18:11:35 -07:00
wokar
1b26b5ad14
add include configuration to logbook ( #3739 )
2016-10-08 11:26:14 -07:00
Paulus Schoutsen
b650b2b0db
Spread async love ( #3575 )
...
* Convert Entity.update_ha_state to be async
* Make Service.call async
* Update entity.py
* Add Entity.async_update
* Make automation zone trigger async
* Fix linting
* Reduce flakiness in hass.block_till_done
* Make automation.numeric_state async
* Make mqtt.subscribe async
* Make automation.mqtt async
* Make automation.time async
* Make automation.sun async
* Add async_track_point_in_utc_time
* Make helpers.track_sunrise/set async
* Add async_track_state_change
* Make automation.state async
* Clean up helpers/entity.py tests
* Lint
* Lint
* Core.is_state and Core.is_state_attr are async friendly
* Lint
* Lint
2016-09-30 12:57:24 -07:00
Paulus Schoutsen
00e298206e
Optimize template 2 ( #3521 )
...
* Enforce compiling templates
* Refactor templates
* Add template validator to Logbook service
* Some more fixes
* Lint
* Allow easy skipping of rfxtrx tests
* Fix template bug in AND & OR conditions
* add entities extractor
Conflicts:
tests/helpers/test_template.py
* fix unittest
* Convert template to be async
* Fix Farcy
* Lint fix
* Limit template updates to related entities
* Make template automation async
2016-09-27 21:29:55 -07:00
wokar
e891f1a260
Filter entities from logbook ( #3426 )
...
* o added ability to exclude entities or domains from logbook
o exclude hidden entities
* fixed remaned configuration key
* - filter the events before they get passed to humanify, to separate concerns
- instead of looking at customize, look for the hidden attribute on the state change events
- access to configuration defaults to an empty list - no need to check
* - filter only events of type EVENT_STATE_CHANGED
- improve config handling
* added unit tests to cover all filter cases and logbook message creation
2016-09-20 20:07:26 -07:00
Adam Mills
3ac9aaf025
Filter continuous values from logbook ( #2761 )
...
* Filter continuous values from logbook
* Test filter continuous values from logbook
2016-08-09 08:01:02 -07:00
Paulus Schoutsen
640a8b5a7f
Limit dependencies of HA core ( #2762 )
2016-08-08 20:21:40 -07:00
Paulus Schoutsen
1620680127
Use local timezone for log and history dates ( #2622 )
...
* Use local timezone for log and history dates
* home-assistant-js fix
* Submodule updates not included so travis can build
* Separate Date and DateTime http validators
* Include submodule reference
* Update frontend
2016-07-27 20:43:46 -07:00
Paulus Schoutsen
22b4aebeb3
Add support for dynamic frontend panels
2016-07-16 23:21:34 -07:00
Johann Kellerman
a60a342864
Logbook: Query databse as_utc(). dt: Use pytz's localize ( #2521 )
2016-07-13 18:45:55 -07:00
rhooper
a2e45b8fdd
Switch to SQLAlchemy for the Recorder component. Gives the ability t… ( #2377 )
...
* Switch to SQLAlchemy for the Recorder component. Gives the ability to use MySQL or other.
* fixes for failed lint
* add conversion script
* code review fixes and refactor to use to_native() model methods and execute() helper
* move script to homeassistant.scripts module
* style fixes my tox lint/flake8 missed
* move exclusion up
2016-07-02 11:22:51 -07:00
Paulus Schoutsen
92d05ccb5c
Fix lint errors
2016-05-28 10:52:44 -07:00
Paulus Schoutsen
bfdb51a558
Bugfixes for urls with dates
2016-05-28 10:37:22 -07:00
Paulus Schoutsen
5aa0158761
Add url validators
2016-05-21 15:01:34 -07:00
Paulus Schoutsen
15e329a588
Tons of fixes - WIP
2016-05-21 15:01:33 -07:00
Paulus Schoutsen
68d92c3196
Use standardised datetime format
2016-04-16 01:46:50 -07:00
Jan Harkes
d6f3123937
Service validation for logbook component.
2016-04-13 12:35:07 -04:00
Fabian Affolter
b534244e40
Fix PEEP257 issues
2016-03-08 17:55:57 +01:00
Fabian Affolter
b8a40457ee
Update docstrings to match PEP257
2016-03-07 18:50:30 +01:00
Fabian Affolter
582394bc3b
Modify import of template and PEP257
2016-02-23 21:19:22 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00