Paulus Schoutsen
|
2e10d7223a
|
Re-organized core for better reusability
|
2014-04-24 00:40:45 -07:00 |
Paulus Schoutsen
|
ef6d862671
|
Further Python 3 migration
|
2014-04-14 23:48:00 -07:00 |
Paulus Schoutsen
|
7e06d535ab
|
Ported codebase to Python 3. Long Live Python 3!
|
2014-04-14 00:10:31 -07:00 |
Paulus Schoutsen
|
28389f6c39
|
More unicode support added to the core
|
2014-03-11 22:35:51 -07:00 |
Paulus Schoutsen
|
0e97e64397
|
One time listener ensures it is executed one time
|
2014-02-14 13:13:37 -08:00 |
Paulus Schoutsen
|
c735e32361
|
Split out track_point_in_time from track_time_change
|
2014-02-14 11:34:09 -08:00 |
Paulus Schoutsen
|
9bfc3e4357
|
ThreadPool now uses a Priority instead of FIFO queue
|
2014-02-02 21:42:57 -08:00 |
Paulus Schoutsen
|
eccf0ff806
|
Track time change will only wrap listener with checks if needed
|
2014-01-30 08:31:34 -08:00 |
Paulus Schoutsen
|
e586d8debc
|
Complain if too much jobs queued.
|
2014-01-29 22:48:35 -08:00 |
Paulus Schoutsen
|
24b2fba170
|
Errors are now being logged to the file home-assistant.log
|
2014-01-29 18:44:39 -08:00 |
Paulus Schoutsen
|
2758d81525
|
New events and service calls now use a shared thread pool
|
2014-01-26 18:44:36 -08:00 |
Paulus Schoutsen
|
0fc3d359cb
|
Moved stuff away from core. Made component interface more uniform.
|
2014-01-23 22:03:13 -08:00 |
Paulus Schoutsen
|
a2ae1667a5
|
Added has_service method to Bus
|
2014-01-23 21:33:54 -08:00 |
Paulus Schoutsen
|
8952902d21
|
Renaming Exceptions to Errors
|
2014-01-23 21:33:12 -08:00 |
Paulus Schoutsen
|
7a800a14be
|
Bugfix: Events that had no listeners would not show in log
|
2014-01-23 16:49:43 -08:00 |
Paulus Schoutsen
|
1ba7d583cc
|
PEP8 styling fix for State
|
2014-01-22 19:41:51 -08:00 |
Paulus Schoutsen
|
659f185252
|
More improvements to State
|
2014-01-22 19:40:19 -08:00 |
Paulus Schoutsen
|
7c15e24d09
|
bugfix: set_state updated state if not changed
|
2014-01-22 10:04:52 -08:00 |
Paulus Schoutsen
|
cd58147fa7
|
StateMachine.set_state now optimized for setting existing states
|
2014-01-20 22:58:23 -08:00 |
Paulus Schoutsen
|
e9e1b007ed
|
RENAME: StateMachine tracks now entities, not categories.
|
2014-01-19 23:37:40 -08:00 |
Paulus Schoutsen
|
e7f5953362
|
Bus and StateMachine are now thread-safe
|
2014-01-19 21:39:57 -08:00 |
Paulus Schoutsen
|
ac0ca5d001
|
Core: Cache external method in local variable for speedup
(inspired by browsing through Python source)
|
2014-01-19 21:39:13 -08:00 |
Paulus Schoutsen
|
01d81fbd65
|
Minor style adjustment to make PEP8 happy
|
2014-01-19 20:56:49 -08:00 |
Paulus Schoutsen
|
3c3e7e5825
|
Events and States are no longer dicts but objects.
|
2014-01-19 19:10:40 -08:00 |
Paulus Schoutsen
|
48026c28c1
|
Added state groups and migrated code base to use them.
|
2014-01-04 17:55:05 -08:00 |
Paulus Schoutsen
|
367433acb2
|
Some code cleanup
|
2014-01-04 13:48:17 -08:00 |
Paulus Schoutsen
|
dd271febae
|
Reorg: Merged observers, actors and HTTPInterface into components
|
2013-12-11 00:07:30 -08:00 |
Paulus Schoutsen
|
3641d2ca24
|
EventBus is now Bus that handles Events and Services
|
2013-11-19 23:48:08 -08:00 |
Paulus Schoutsen
|
05e68c3e1e
|
DeviceTracker can now reload tracked devices without restart
|
2013-11-18 22:45:19 -08:00 |
Paulus Schoutsen
|
f07622e0d7
|
Made homeassistant.stop code leaner
|
2013-11-11 17:46:08 -08:00 |
Paulus Schoutsen
|
ead057cb04
|
Added shutdown event
|
2013-11-11 14:58:57 -08:00 |
Paulus Schoutsen
|
483546a31d
|
Code according to PEP8 standard
|
2013-11-10 16:46:48 -08:00 |
Paulus Schoutsen
|
860812fa19
|
Cosmetic adjustments
|
2013-11-10 09:31:34 -08:00 |
Paulus Schoutsen
|
a60f6754aa
|
EventBus can now report overview of events that have listeners.
|
2013-11-01 12:28:18 -07:00 |
Paulus Schoutsen
|
24b317f10d
|
StateMachine.get_state will not throw an exception but return None if category does not exist
|
2013-11-01 11:29:37 -07:00 |
Paulus Schoutsen
|
47d2c04c90
|
StateMachine.is_state was bugged
|
2013-10-31 18:41:28 -07:00 |
Paulus Schoutsen
|
102690a770
|
last_changed value of State is now a string so it can be send over the API
|
2013-10-28 18:45:35 -07:00 |
Paulus Schoutsen
|
83d878810e
|
Events and States will now only use JSON serializable attributes
|
2013-10-27 17:39:54 -07:00 |
Paulus Schoutsen
|
1da1713d2f
|
StateMachine.is_state will return False if category does not exist
|
2013-10-26 22:26:58 +01:00 |
Paulus Schoutsen
|
5ae08c6f0f
|
Clearified some behavior
|
2013-10-25 11:05:34 +01:00 |
Paulus Schoutsen
|
66d432d0a2
|
StateMachine now supports attributes for states
|
2013-10-24 07:57:08 +01:00 |
Paulus Schoutsen
|
c1819e19a4
|
Timer is more accurate and wakes up less often
|
2013-10-24 01:42:16 +01:00 |
Paulus Schoutsen
|
00c9d22a58
|
Added listen_once to eventbus
|
2013-10-24 00:29:33 +01:00 |
Paulus Schoutsen
|
42c7f33567
|
Cleaned up API statemachine
|
2013-10-24 00:08:28 +01:00 |
Paulus Schoutsen
|
b9212514bd
|
Converted Timer and HTTP Interface threads to daemons for cleaner shutdown.
|
2013-10-08 19:00:10 -07:00 |
Paulus Schoutsen
|
71bd03ed8c
|
Cleaned up the core.
|
2013-10-08 18:50:30 -07:00 |
Paulus Schoutsen
|
32b357f5e1
|
PyLint is a lot happier about the code now.
|
2013-10-07 23:55:19 -07:00 |
Paulus Schoutsen
|
1a22f1678c
|
Catching exceptions from listeners in the eventbus to prevent unexpected crashed to crash the core
|
2013-10-06 23:06:59 -07:00 |
Paulus Schoutsen
|
e4a6219386
|
StateMachine sorts states now case insesitive
|
2013-09-30 19:00:45 -07:00 |
Paulus Schoutsen
|
a491df761f
|
Integrated core.py into module-init
|
2013-09-30 00:20:27 -07:00 |