Commit graph

14 commits

Author SHA1 Message Date
Antoine Meillet
e75f9b36f9 add heartbeat support to mysensors () 2018-11-10 21:08:03 +01:00
Martin Hjelmare
9a6c229b1d
Refactor mysensors message handling ()
* Refactor mysensors message handling

* Add handler module and register handlers per message type or message
  sub-type. This will allow easier extension of message handling in the
  future.
* Move some common functions to a helpers module.

* Add node handler and signal

* Fix inconsistent return

* Upgrade pymysensors to 0.18.0

* Fix bug in message modification.
2018-11-04 21:08:27 +01:00
Paulus Schoutsen
6ae345b01c
Pass hass_config to load_platform ()
* Pass hass_config to load_platform

* Fix tests

* Lint
2018-10-29 19:21:21 +01:00
cdce8p
7f0a50ce31 async_create_task ()
* async_create_task

* Update google.py
2018-10-02 11:03:09 +02:00
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ()
* add_devices -> add_entities

* Lint

* PyLint

* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Ville Skyttä
dbd0763f83 Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
Martin Hjelmare
b5e7414be2 Fix mysensors connection task blocking setup ()
* Fix mysensors connection task blocking setup

* Schedule the connection task without having the core track the task
  to avoid blocking setup.
* Cancel the connection task, if not cancelled already, when
  home assistant stops.

* Use done instead of cancelled
2018-08-16 14:19:42 +02:00
Martin Hjelmare
e8218c4b29
Upgrade pymysensors to 0.17.0 () 2018-08-12 20:22:54 +02:00
Paulus Schoutsen
ea2ff6aae3
Use async_create_task ()
* Use async_create_task

* Fix test
2018-07-23 14:05:38 +02:00
Ville Skyttä
b7c336a687 Pylint cleanups ()
* 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 ()
## 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
Martin Hjelmare
a0193e8e42
Upgrade pymysensors to 0.16.0 () 2018-07-19 22:52:03 +02:00
Ville Skyttä
bf17ed0917 More pylint 2 fixes ()
* Pylint 2 useless-import-alias fixes

* Pylint 2 chained-comparison fixes

* Pylint 2 consider-using-get fixes

* Pylint 2 len-as-condition fixes
2018-07-18 11:54:27 +02:00
Martin Hjelmare
3893d8a876 Reorganize mysensors ()
* Move mysensors.py to package

* Move mysensors component to package

* Split code into multiple modules.

* Update coveragerc
2018-06-25 13:58:16 +02:00