Commit Graph

6 Commits (121dba659c0cf179e35de351f683be954edd091b)

Author SHA1 Message Date
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
Diogo Gomes b1e2275b47 Add debug () 2017-11-27 21:25:00 +01:00
Diogo Gomes bc23799c71 Change to device state attributes ()
* Following the suggestion of @MartinHjelmare
2017-11-12 15:25:44 +01:00
Diogo Gomes 9bfdff0be1 add JSON processing capabilities to sensor_serial ()
* add JSON processing capabilities

* format fixes

* format fixes

* Fix according to @fabaff comment

* reverting last commit to a more sane approach

* docstring...

* still docstring...

* passed script/lint

* downgrade exception

JSONDecodeError was only introduced in Python3.5

Since we are still supporting 3.4 ValueError is the parent class of
JSONDecodeError
2017-11-10 10:49:30 +01:00
Diogo Gomes a5aa111893 Add baudrate option to Serial sensor ()
* Add baudrate option

Baudrate is essential!

* line too long

line too long (82 > 79 characters)

* trailing whitespace

* Rename const

* Fix the missing one
2017-11-07 22:06:19 +01:00
Fabian Affolter 8a2134b3a8 Add serial sensor ()
* Add serial sensor

* Rename config variable and cancel
2017-10-18 11:20:19 +02:00