Commit graph

7 commits

Author SHA1 Message Date
Bram Kragten
b7896491e3 Lovelace ws: add move command ()
* Check for unique ids + ids are strings

* Add move command

* Add test for move

* lint

* more lint

* Address comments

* Update test
2018-10-26 12:56:14 +02:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ()
* Convert core tests

* Convert component tests to use pytest assert

* Lint 🤷‍♂️

* Fix test

* Fix 3 typos in docs
2018-10-24 12:10:05 +02:00
Bram Kragten
0f69be117f Lovelace ws: add card ()
* Change set to update

* Add 'add card'

* Woof.
2018-10-23 21:48:35 +02:00
Bram Kragten
96105ef6e7 Add lovelace websocket get and set card ()
* Add ws get, set card

* lint+fix test

* Add test for set

* Added more tests, catch unsupported yaml constructors

Like !include will now give an error in the frontend.

* lint
2018-10-22 14:45:13 +02:00
Bram Kragten
33860bf23c Adding id to lovelace cards in ui-lovelace.yaml ()
* ID is added to cards without ID in ui-lovelace.yaml when loaded

* Hound

* Remove ui-lovelace.yaml

* Nicer get

* Update tests

* If YAML dump fails, config not gone

* Add tests

* Woof!

* Remove nosetests

* Address comments

* Woof...

* Delete test.yaml

* update rights to saved file

* fix

* line break
2018-10-17 16:31:06 +02:00
Paulus Schoutsen
22a80cf733
Break up websocket component ()
* Break up websocket component

* Lint
2018-10-01 11:21:00 +02:00
Paulus Schoutsen
e78f4d1b65
Extract lovelace to it's own component ()
* Extract lovelace to it's own component

* Lint

* Update comment

* Lint

* Lint
2018-09-25 08:39:35 +02:00