Matt White
9eaa057739
Add EntityFilter helper ( #10221 )
...
* Add EntityFilter helper
* Changes in entityfilter after code review
* Convert recorder to use EntityFilter
* Fix flake/lint errors in recorder
* Update entity filter helper to return function
* Update recorder to use updated entity filter
* Better docstrings in entityfilter
* Update entityfilter.py
2017-10-31 21:54:50 -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
Pascal Vizeli
b292a4af3f
EntityComponent: revert warning ( #10078 )
...
* Add warning back
* fix lint
2017-10-23 17:39:50 +02:00
Pascal Vizeli
4bf1972393
Remove warning
2017-10-23 08:58:02 +02:00
Pascal Vizeli
56cbfb5f2a
Fix device update / entity_id with names ( #10029 )
...
* Fix device update
* Add tests
* add test for disabled warning
2017-10-22 08:40:00 -07:00
Pascal Vizeli
c1b197419d
Fix async probs ( #9924 )
...
* Update entity.py
* Update entity_component.py
* Update entity_component.py
* Update __init__.py
* Update entity_component.py
* Update entity_component.py
* Update entity.py
* cleanup entity
* Update entity_component.py
* Update entity_component.py
* Fix names & comments / fix tests
* Revert deadlock protection
* Add tests for entity
* Add test fix name
* Update other code
* Fix lint
* Remove restore state from template entities
* Lint
2017-10-19 10:56:25 +02:00
Paulus Schoutsen
6cce934f72
Improve SSL certs used by aiohttp ( #9958 )
...
* Improve SSL certs used by aiohttp
* Add certifi package
* Lint
2017-10-19 10:47:57 +02:00
cdce8p
be5c0b2d92
Wait_template - support for 'trigger.entity_id' and data_template values ( #9807 )
...
* *Added support for use of 'trigger.entity_id' and service->data_template->script in wait_template
* * Fixed style violations
* * Fixed regular expression (_RE_GET_POSSIBLE_ENTITIES)
* * combined 'extract_entities' and 'extract_entities_with_variables'
* fixed regular expression
* * Added first test for extract_entities_with_variables
* * Added Unittests (tests/helpers/test_template.py test_extract_entities_with_variables)
* * Added Unittests (tests/helpers/test_script.py test_wait_template_variables)
* * Added Unittests (tests/components/automation/test_template.py test_wait_template_with_trigger)
* * Added Unittests (tests/components/automation/test_state.py test_wait_template_with_trigger)
* * Added Unittests (tests/components/automation/test_numeric_state.py test_wait_template_with_trigger)
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Updated regular expression and delete whitespaces
2017-10-12 16:57:18 +02:00
Paulus Schoutsen
8f06b35dfc
Optimize event matcher ( #9798 )
...
* Optimize event matcher
* Tweak order of checks
* Add a benchmark for time_changed helper
* Add state change benchmark
* fix lint
2017-10-10 22:26:03 +02:00
Paulus Schoutsen
a97e7bb22d
Simplify track_same_state ( #9795 )
2017-10-10 21:16:19 +02:00
Paulus Schoutsen
ca54bbfcc9
RFC: Use bind_hass for helpers ( #9745 )
...
* Add Helpers bind_hass functionality
* Update other helpers
2017-10-08 08:17:54 -07:00
happyleavesaoc
b83059c828
move icon battery function from util to helpers ( #9708 )
2017-10-05 20:55:19 -07:00
Lukas Barth
236d5f8742
Add an input_datetime ( #9313 )
...
* Initial proposal for the input_datetime
* Linting
* Further linting, don't define time validation twice
* Make pylint *and* flake8 happy at the same time
* Move todos to the PR to make lint happy
* Actually validate the type of date/time
* First testing
* Linting
* Address code review issues
* Code review: Remove forgotten print()s
* Make set_datetime a coroutine
* Create contains_at_least_one_key_value CV method, use it
* Add timestamp to the attributes
* Test and fix corner case where restore data is bogus
* Add FIXME
* Fix date/time setting
* Fix Validation
* Merge date / time validation, add tests
* Simplify service data validation
* No default for initial state, allow 'unknown' as state
* cleanup
* fix schema
2017-09-28 23:57:49 +02:00
Pascal Vizeli
7c8e7d6eb0
Cleanup entity & remove warning ( #9606 )
...
* Cleanup entity & remove warning
* Update comment
2017-09-27 16:21:39 -07:00
Michael Prokop
08b0629eca
Fix a bunch of typos ( #9545 )
...
s/Addres /Address /
s/Chnage/Change/
s/Converion/Conversion/
s/Supressing/Suppressing/
s/agains /against /
s/allready/already/
s/analagous/analogous/
s/aquired/acquired/
s/arbitray/arbitrary/
s/argment/argument/
s/aroung/around/
s/attibute/attribute/
s/auxillary/auxiliary/
s/befor /before /
s/commmand/command/
s/conatin/contain/
s/conection/connection/
s/coresponding/corresponding/
s/entites/entities/
s/enviroment/environment/
s/everyhing/everything/
s/expected expected/expected/
s/explicity/explicitly/
s/formated/formatted/
s/incomming/incoming/
s/informations/information/
s/inital/initial/
s/inteface/interface/
s/interupt/interrupt/
s/mimick/mimic/
s/mulitple/multiple/
s/multible/multiple/
s/occured/occurred/
s/occuring/occurring/
s/overrided/overridden/
s/overriden/overridden/
s/platfrom/platform/
s/positon/position/
s/progess/progress/
s/recieved/received/
s/reciever/receiver/
s/recieving/receiving/
s/reponse/response/
s/representaion/representation/
s/resgister/register/
s/retrive/retrieve/
s/reuqests/requests/
s/segements/segments/
s/seperated/separated/
s/sheduled/scheduled/
s/succesfully/successfully/
s/suppport/support/
s/targetting/targeting/
s/thats/that's/
s/the the/the/
s/unkown/unknown/
s/verison/version/
s/while loggin out/while logging out/
2017-09-23 17:15:46 +02:00
Pascal Vizeli
90f9a6bc0a
Cleanup and simplitfy the async state update ( #9390 )
...
* Cleanup and simplitfy the async state update
* Update test_entity.py
2017-09-12 10:01:03 +02:00
Pascal Vizeli
ed699896cb
Core track same state for a period / Allow on platforms ( #9273 )
...
* Core track state period / Allow on platforms
* Add tests
* fix lint
* fix tests
* add new tracker to automation state
* update schema
* fix bug
* revert validate string
* Fix bug
* Set arguments to async_check_funct
* add logic into numeric_state
* fix numeric_state
* Add tests
* fix retrigger state
* cleanup
* Add delay function to template binary_sensor
* Fix tests & lint
* add more tests
* fix lint
* Address comments
* fix test & lint
2017-09-05 02:01:01 +02:00
Paulus Schoutsen
5629157740
Allow getting number of available states in template ( #9158 )
2017-08-27 18:33:25 +02:00
Paulus Schoutsen
8605098ea0
Wrap state when iterating a domain in templates ( #9157 )
2017-08-26 17:00:59 -07:00
Andrey Kupreychik
c537770786
Close stream request once we end up with proxy ( #9110 )
...
* Close stream request once we end up with proxy
* Update aiohttp_client.py
* Update aiohttp_client.py
* Removed trailing whitespace
2017-08-26 09:56:39 -07:00
Paulus Schoutsen
b282167f26
Add state_with_unit property to state objects in templates ( #9014 )
...
* Wrap state objects in templates
* Fix tests
* Fix bugs
* Lint
* Remove invalid state warning
2017-08-17 23:19:35 -07:00
Paulus Schoutsen
c2828bac2c
Tweak conversation/intent/shopping list ( #8636 )
2017-07-25 00:42:59 -07:00
Koen Ekelschot
c6bf529d38
Allow set_cover_position in scenes ( #8613 )
2017-07-23 15:59:27 +02:00
Paulus Schoutsen
7edf14e55f
Add Intent component ( #8434 )
...
* Add intent component
* Add intent script component
* Add shopping list component
* Convert Snips to use intent component
* Convert Alexa to use intent component
* Lint
* Fix Alexa tests
* Update snips test
* Add intent support to conversation
* Add API to view shopping list contents
* Lint
* Fix demo test
* Lint
* lint
* Remove type from slot schema
* Add dependency to conversation
* Move intent to be a helper
* Fix conversation
* Clean up intent helper
* Fix Alexa
* Snips to use new hass.components
* Allow registering intents with conversation at any point in time
* Shopping list to register sentences
* Add HTTP endpoint to Conversation
* Add async action option to intent_script
* Update API.ai to use intents
* Cleanup Alexa
* Shopping list component to register built-in panel
* Rename shopping list intent to inlude Hass name
2017-07-21 21:38:53 -07:00
Anders Melchiorsen
87b83f3602
Accept transition for light.toggle ( #8466 )
2017-07-13 20:04:23 -07:00
Russell Cloran
ac72dea09a
Add support for Prometheus ( #8211 )
...
Prometheus (https://prometheus.io/ ) is an open source metric and alerting
system. This adds support for exporting some metrics to Prometheus, using
its Python client library.
2017-07-10 21:20:17 -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
d73b695e73
EntityComponent to retry platforms that are not ready yet ( #8209 )
...
* Add PlatformNotReady Exception
* lint
* Remove cap, adjust algorithm
2017-06-26 09:41:48 -07:00
Paulus Schoutsen
18935440ed
Fix EntityComponent handle entities without a name ( #8065 )
...
* Fix EntityComponent handle entities without a name
* Implement solution by Anders
2017-06-17 10:50:59 -07:00
Pascal Vizeli
2438c6b7c2
Fix attribute entity ( #8066 )
...
* Bugfix entity attribute setter
* Fix tests
* Fix tests part 2
* Change filter only None
* Fix tests part 3
* Update entity.py
* Fix tests
2017-06-17 10:03:49 -07:00
Pascal Vizeli
814834512a
Group service / dynamic handling ( #7971 )
...
* Add Service to group
* Finish service
* Add service functions
* fix lint
* Address paulus comments
* fix lint & cleanup
* fix lint
* fix lint
* fix lint p3
* add test for check group
* add more tests
* fix lint
* Update service.yaml
* Fix order for tests
* Fix comment
* Fix test
* Fix tests
* Fix name in tests
* Fix view
* Fix default value
* Fix lint
* Fix key error
* add name
* migrate component entity
* fix tests
* fix import
* migrate device tracker
* fix lint
* fix bug
* fix logic
* fix lint
* fix tests
* fix generator
* fix group
* fix other tests.
* Not need to load group on first stage anymore.
* fix service
* add more group depency
* fix tests
* Revert "fix tests"
This reverts commit 35a922b3a8
.
* Real fix
* fix test p2
* fix test p3
* fix test p4
* fix test p5
* fix test p6
* fix lint
* fix test p7
* Rename attribute
* fix group test
* fix bug
* fix flagy tests
* fix service.yaml
* fix lint
2017-06-16 00:52:28 +02:00
Paulus Schoutsen
640c692e1f
Fix platforms being able to block startup ( #7970 )
2017-06-09 12:11:58 +02:00
Fabian Affolter
0863d50210
Fix typos ( #7957 )
...
Add an optional extended description…
2017-06-08 15:53:12 +02:00
Adam Mills
beb8c05d91
Use expected behvaior for above/below ( #7857 )
2017-06-01 22:43:24 -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
Anton Sarukhanov
7055fddfb4
Don't block startup more than 60 seconds while waiting for components. ( #7739 )
2017-05-23 14:29:27 -07:00
Anton Sarukhanov
f3dabe21ab
Prevent the random template filter from caching its output. Fixes #5678 ( #7716 )
2017-05-23 10:32:06 -07:00
Anders Melchiorsen
bb8de5845a
Sort entities in default groups by name ( #7681 )
...
* Sort entities in default groups by name
* Cleanups from review
2017-05-21 17:05:48 -07:00
Anders Melchiorsen
81f0826550
Ignore attribute changes in automation trigger from/to ( #7651 )
...
* Ignore attribute changes in automation trigger from/to
* Quote names in deprecation warnings
This makes it somewhat easier to read if the suggestion happens to be
named "to".
* Add test with same state, new attribute value
2017-05-20 15:18:59 -04:00
Adam Mills
40d27cde0e
Refactor sun component for correctness ( #7295 )
...
* Refactor sun component for correctness
* Convert datetimes to dates for astral
* Fix tests for updated code
* Fix times now that calcs are fixed
* Move sun functions to helpers
* Fix flake on new file
* Additional tweaks from review
* Update requirements
2017-05-09 00:03:34 -07:00
Fabian Affolter
4d52b0ecd5
Update docstrings ( #7405 )
...
* Update docstrings
* Fix lint issues
* Update docstrings
2017-05-02 22:47:20 +02:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
Paulus Schoutsen
9afbbbf3fe
Remove ordered_dict validator ( #7375 )
...
* Remove ordered_dict validator
* Lint
* Update test_config_validation.py
2017-04-30 10:55:03 -07:00
Fabian Affolter
cfc023e128
Don't use len(SEQUENCE) as condition value ( #7249 )
...
* Don't use len(SEQUENCE) as condition value
* Update volvooncall.py
2017-04-23 20:41:09 -07:00
Fabian Affolter
8ba41563c9
Disable invalid-sequence-index ( #7177 )
2017-04-19 14:09:00 +02:00
Pascal Vizeli
d7ca9e7a66
Make core to look avilable state of device on servicecall ( #7045 )
2017-04-11 08:59:46 -07:00
Paulus Schoutsen
8c97bccaaa
Handle aiohttp task cancellation better ( #6862 )
2017-03-31 11:55:22 +02:00
Paulus Schoutsen
714b516176
aiohttp 2 ( #6835 )
...
* Upgrade aiohttp2
* Fix resource caching
* Fix helpers.aiohttp_client
* Lint
* Use static path for api error_log
* Fix ClientErrors import
* Remove not needed DisconnectError
* Remove releasing responses code
* Add timeout if stream starts non responding
* More async_aiohttp_proxy_stream cleanup
* Fix references to ClientError
* Fix fingerprinting
* Fix aiohttp stream tests
* Rename aiohttp_proxy_stream
* Remove impossible darksky test
* Fix sleepiq requests escaping mocker
* Lint
* Remove deprecated parameter
* Break up aiohttp_proxy_stream in 2 methods
* Lint
* Upgrade to aiohttp 2.0.4
* Convert connector close to a callback
* Fix static fingerprinted links
2017-03-30 00:50:53 -07:00
Paulus Schoutsen
de231cf9ab
restore_state: do not crash if domain not defined ( #6714 )
2017-03-20 08:54:51 -07:00
Paulus Schoutsen
e265401cd0
self.loop.create_task -> self.add_job ( #6632 )
...
* self.loop.create_task -> self.add_job
* Core to use create task
2017-03-16 06:58:54 +01:00