8368 Commits

Author SHA1 Message Date
Jerad Meisner
918c2ce29e Love: Update hui-image to use entity instead of state. (#1386)
* Update hui-image to use entity instead of state.

* Removed old function.
2018-07-02 14:20:16 -04:00
Paulus Schoutsen
66803cd4eb
Add panel mode (#1383) 2018-07-02 14:17:48 -04:00
Paulus Schoutsen
66ae61374d
Add navigation element (#1384)
* Add navigation element

* Lint

* Add missing import
2018-07-02 14:17:23 -04:00
Paulus Schoutsen
cf5460bf58
Add simple picture card (#1385)
* Add simple picture card

* navigate_path -> navigation_path
2018-07-02 14:16:29 -04:00
Paulus Schoutsen
c868df2718
Only allow state filter for filter card (#1387)
* Only allow state filter for filter card

* Lint

* Address comments
2018-07-02 14:03:59 -04:00
Paulus Schoutsen
6b8fbd91c6
Use name for entities (#1380)
* Use name for entities

* Glance: title -> name
2018-07-02 08:44:10 -04:00
Jerad Meisner
06cf03bff0 Fix image filtering when no off state is defined (#1379)
* Fix image filtering when no off state is defined

* Change Offline to Unavailable.
2018-07-02 02:12:18 +02:00
c727
22ee205807
Love: picture elements: nowrap for buttons (#1378) 2018-07-01 21:15:20 +02:00
Marius
e410274684 Lovelace: entity-filter: hide card when entities[] empty (#1373)
* Implements https://github.com/home-assistant/ui-schema/issues/48

Fixed lint

* Updates based on review

Reset display on new config

Fixed reset as setConfig was not being called

Fixed lint
2018-07-01 12:55:27 -04:00
Paulus Schoutsen
76256699e0
Fix card size calculation stacks (#1375) 2018-07-01 12:25:28 -04:00
Paulus Schoutsen
dc5213a79a
Fixes (#1377)
* Fix legacy wrapper in browsers without native custom elements

* Better error reporting for picture-elements

* Lint
2018-07-01 12:25:00 -04:00
Jerad Meisner
54fcb21917 Love: Allow custom title per entity in entities card (#1374)
* Allow custom title per entity in entities card

* Change entityConfig to config

* Only pass title to state-cards
2018-07-01 11:28:25 -04:00
Jerad Meisner
1a9af5595f Love: Added <hui-image> element for handling different image sources (#1365)
* Added hui-image element. Converted picture-glance and picture-entity.

* Fixed hui-image data bindings

* Hide image if no source. Error message l10n

* Pass entire state object to hui-image

* Renamed isObject function. Fix camera image updating.
2018-07-01 11:26:41 -04:00
c727
5f44009177
Love: Add badges to picture elements (#1371)
* Love: Add badges to picture elements

* Lint

* Fix toggle text

* Simplify service button config

* Add default for service data

* Lint
2018-06-30 15:52:02 +02:00
Marius
42026f096f Renamed row and column (#1370) 2018-06-30 01:22:55 +02:00
c727
122414e7bd Love: Set love as default page (#1368)
* Love: Set love as default page

* Make toggle, move to dev-info

* Typo
2018-06-29 15:56:40 -04:00
Paulus Schoutsen
cdb7a6261e
Random fixes (#1369)
* Random fixes

* weather card to use legacy wrapper

* Lint
2018-06-29 15:35:46 -04:00
Paulus Schoutsen
bb670b76a9
Migrate cards to use setConfig to get config. (#1363)
* Experiment with setConfig

* More cleanup

* fix filter card

* Wait for DOM to be done

* 1 line

* Lint

* Lint2

* Lint
2018-06-29 10:54:52 -04:00
Jerad Meisner
05816374a8 Love: Fix config parsing in hui-glance-card (#1364)
* Fix config parsing in hui-glance-card

* Don't modify config.
2018-06-29 10:20:52 -04:00
c727
5b67a3691a
Love: change keys from "name" to "title" (#1367)
* Love: change keys from "name" to "title"

* Change action to tap_action
2018-06-29 16:08:04 +02:00
Jerad Meisner
fb2fc9fbbb Love: Add optional title to hui-glance-card (#1355)
* Add optional title to hui-glance-card

* Use entity instead of entity_id. Allow both simple and complex entities in glance card config.

* Fix lint errors.

* Make coerceEntitiesToObjects accept single entity or array.

* Fix entities helper function. Add entities validation function.

* Fix conflicts
2018-06-29 05:34:05 +02:00
c727
ee0308849e
Love: cleanup (#1362)
* Love: cleanup

* Fix
2018-06-29 05:16:01 +02:00
c727
51f169aa13
Love: Add reload button to error screen (#1360)
* Love: Add reload button to error screen

* Move slot

* Feedback
2018-06-29 05:13:10 +02:00
c727
038f5b644b Love: Rework PictureEntityCard (#1359)
* Love: Rework picture-entity-card

* Rework

* Use OFFLINE const

* Add optional title

* Fix issue, lint
2018-06-28 22:36:52 -04:00
c727
3442700e1f Love: more cleanup (#1361)
* Love: more cleanup

* Fix

* Lint
2018-06-28 22:30:17 -04:00
c727
07d76739b4
Love: cleanup (#1358)
* Love: cleanup

* Lint

* Fix CopyPaste

* Change config key names for history

* Restore old card size

* Add function description

* Use createErrorCardConfig
2018-06-28 21:53:56 +02:00
Paulus Schoutsen
d40dea6d3b
Fix auth redirect url (#1357) 2018-06-28 14:48:01 -04:00
c727
8bbc8e0bb8
Love: Add column and row card (#1353)
* Love: Add column and row card

* Lint

* Add row card, also broken CSS

* Add cardSize logic

* Fix CSS

* Working now

* Feedback

* Lint
2018-06-28 04:42:13 +02:00
c727
9e2d311ce6
Hassio: fix scroll issues (#1354)
* Hassio: fix scroll issues

* Feedback

* Lint

* Lint

* Move to dom
2018-06-28 04:20:16 +02:00
c727
de91aea3b9 Revert "Love: Add column and row card"
This reverts commit e0ccc1999ad3c83901f5e4d5b54ed0188debba39.
2018-06-27 22:12:01 +02:00
c727
e0ccc1999a Love: Add column and row card 2018-06-27 22:00:30 +02:00
Paulus Schoutsen
654e74294d
Default view (#1349)
* Do not rebuild config twice on tab change

* Allow setting default page
2018-06-27 14:18:58 -04:00
Paulus Schoutsen
20e92893e0
Organize createElement (#1348)
* Organize createElement

* Fix line-height
2018-06-27 14:18:05 -04:00
c727
f2d30ad850 Love: Permalinks for views (#1340)
* Love: Permalinks for views

* Cleanup

* Do not redraw unnecessarily
2018-06-27 14:05:00 -04:00
c727
88453733eb Love: Picture elements: Add service button and text state (#1343)
* Love: Picture elements: Add service button and text state

* Feedback

* Lint

* Separate div.element

* Remove line-height

* New class for state-text

* Add line height
2018-06-27 13:56:19 -04:00
c727
584e959f1a Fix weather card getUnit 2018-06-27 17:25:46 +02:00
c727
479de6c4c7
Love: Entities card: add turn on/off all (#1337)
* Love: Entities card: add turn on/off all

* Cleanup

* Fix hide toggle

* Lint

* Lint

* Feedback

* Lint

* Fix ent pic card
2018-06-27 17:20:18 +02:00
c727
be7900cd87
Fix air pressure uom in weather cards (#1346)
* Fix aire pressure uom in weather cards

* Feedback

* Lint
2018-06-27 17:16:16 +02:00
cdce8p
7bfc01b02c Fix climate state without translation (#1344) 2018-06-27 05:51:18 -04:00
c727
590bba0aca
Love: Card to show entites on picture (#1341)
* Love: Card to show entites on picture

* Lint

* MVP + x

* Feedback

* Add toggle action

* Lint
2018-06-27 03:45:40 +02:00
c727
aa27ee609d Love: Improve code in glance picture (#1339)
* Live: Improve code in glance card

* Lint

* Fix constants
2018-06-26 10:52:53 -04:00
c727
e1e88aa8b2 love: Fix div overflow (#1338)
thought I tested this :( too many local branches....
2018-06-26 10:52:01 -04:00
c727
e3d7220c0b Love: Rework history graph (#1335)
* Love: Rework history graph

* Lint
2018-06-26 10:51:34 -04:00
c727
9fd1db0493 Love: move create card element to component, improve error card (#1328)
* Love: move create card element to component, improve error card

* Remove whenDefined

* Fix config check

* Allow enity_id only card config

* Feedback

* Fix conflicts

* Add import

* Lint

* Lint

* Lint -.-"
2018-06-26 10:50:51 -04:00
Paulus Schoutsen
2cfff991ac
Do not use async await in custom panels (#1336)
* Do not use async await in custom panels

* Lint
2018-06-25 15:59:17 -04:00
Eu
376228e0fe [Lovelace] Add iframe card (#1330)
* Create hui-iframe-card.js

* Update compute-card-element.js

* Update hui-iframe-card.js

* Update hui-iframe-card.js

* Update hui-iframe-card.js

* Update hui-iframe-card.js

* Lint

* Update hui-iframe-card.js

* Change height to aspect_ratio
2018-06-25 15:24:04 -04:00
c727
b0561d7766
Love: Add conversation button (#1333) 2018-06-25 15:54:42 +02:00
c727
bda2d42994
Love: Fix entity_pic in glance card (#1334) 2018-06-25 15:54:31 +02:00
Mariusz Łuciów
d225105e58 Fixed invalid contant type header (#1331)
The `application` is not a valid MimeType:
https://www.iana.org/assignments/media-types/media-types.xhtml#application
2018-06-24 21:53:11 +02:00
Paulus Schoutsen
53e698c757
Compatibility fix for custom panel (#1321)
* Compatibility fix for custom panel

* Lint
2018-06-22 10:17:06 -04:00