9984 Commits

Author SHA1 Message Date
Andrey
a4bcf062d5 Add missed mixin to ha-call-api-button (#620) 2017-11-13 08:28:28 -08:00
Adam Mills
056e9e0d74 Translations for core states (#575)
* Fix deeper nested translations build

* Make fallback to message optional

* Use translated state names

* Remove unused switch cases

* Use src en.json as fallback instead of downloaded

* Use separate translations for badge states

* Eliminate unnecessary StatesMixin

* Remove now unused localize fallback parameter

* Fix capitalization to match material guidelines

* Move media player text generation back to model

* Make localize args object

* Change Mixin to use computed function

* Revert to normal args spread for haLocalize

* Rename to computeHaLocalize

* Allow state to default for badge and media player

* Denormalize en.json with Lokalise placeholders

* Fix cleanups missed after master merge

* Split zwave query stage states to separate keys

* Throw error to fail gulp build

* Fix zwave template and regression on general state
2017-11-12 17:48:42 -08:00
c727
1314caba97 Add new languages to metadata (#591)
* Add new languages to metadata

* Update translationMetadata.json

* Add et

* Add ca (twitter request)

* Add en-US

* Remove en-US

* Add es-419

* Add ta
2017-11-12 14:14:33 +02:00
Adam Mills
1ab551116e
Fix login form with translations (#612)
* Revert "Fix not showing login form (#564)"

This reverts commit d2faeaffe7a578d86d04394af6590e94e42f0e09.

* Don't lose translation resources on logout

* Fix lint
2017-11-11 18:16:15 -05:00
c727
f106767eae Don't add more-info-card if hidden (#549)
* Don't add more-info-card if hidden

* Fix c&p

* Use itemForElement

* Fix travis

* Update ha-entities-card.html

* Update ha-entities-card.html

* Remove brackets
2017-11-11 13:19:04 -08:00
Andrey
583abedd34 Support serving ES6 JS to clients (#596)
* Support serving ES6 JS to clients

* Make es6 default dir and es5 a special dir

* Fix package building

* Fix build_frontend script
2017-11-10 09:05:37 -08:00
Adam Mills
11f4f3b3c9
Update zwave to use new state values (#584)
* Update zwave to use new state values

* Support for zwave initializing state

* Show query stage on card for zwave entities

* Move logic to compteStateState
2017-11-07 10:14:01 -05:00
c727
f600a8e7f4 Add new requested languages (#579)
* Add new requested languages

* Add Hindi, Telugu, Bengali

* Correct order
2017-11-06 11:14:14 -05:00
c727
d1325da6e6 Fix Capitalization in English translation (#571)
* Fix Capitalization in English translation

https://material.io/guidelines/style/writing.html#writing-capitalization-punctuation

* Add Spanish
2017-11-05 17:45:08 -08:00
Paulus Schoutsen
95031fdd79 Fix import 2017-11-05 12:46:53 -08:00
Paulus Schoutsen
fe439723ee
Fix more event mixin missing (#570) 2017-11-05 12:37:57 -08:00
Simon
ba5f401890 Introduced a new device class "plug" for the binary sensor. (#558)
* Introduced a new device class "plug" for the binary sensor.

See https://github.com/home-assistant/home-assistant-polymer/issues/550

* removed plug as domain
2017-11-05 10:23:57 -08:00
Paulus Schoutsen
d2faeaffe7
Fix not showing login form (#564) 2017-11-04 12:47:28 -07:00
Adam Mills
6959b1849f Store language native names in git (#556)
* Don't delete the gitignore file

* Store translation native names in git
2017-11-03 21:31:22 -07:00
Andrey
c3a6495eb1 Don't load mdi icons with JS - it doesn't do anything. (#546) 2017-11-03 20:36:00 -07:00
Adam Mills
fdf2fa3d3f Migrate to Lokalise for managing translations (#555) 2017-11-03 20:34:47 -07:00
Andrey
d2e9918f88 Allow passive events (#551) 2017-11-02 20:54:41 -07:00
Paulus Schoutsen
da5ae33bb3 Remove introduction card (#543)
* Remove introduction card

* Extract ha-markdown component

* Limit image width

* Links in persistent notification should be blue
2017-11-01 10:52:39 +01:00
Andrey
3e86ba1222 Use dynamic-align on all dropdowns (#542)
* Use dynamic-align on all dropdowns

* Replace tab with spaces
2017-10-30 17:48:30 -07:00
Andrey
7479aeceee
Merge pull request #532 from andrey-git/translations
Make translation utils properly handle null selected language.
2017-10-30 19:24:05 +02:00
andrey-git
386193ee44 Fall back to english on missing fingerprint. 2017-10-30 19:03:38 +02:00
Paulus Schoutsen
33eb4172b3 Fix async is not a method 2017-10-29 22:15:37 -07:00
Adam Mills
fb0b1286d2 Convert remaining elements to ES6 classes (#538)
* Convert remaining elements to ES6 classes

* Use native DOM methods for tests

* Fix Polymer 2 debounce call
2017-10-29 21:47:03 -07:00
andrey-git
e9d84d2a69 Only parse JSON once 2017-10-28 11:55:30 +03:00
Andrey
17402a1976 Turn ha-cards.html into ES6 class (#533) 2017-10-27 22:05:08 -07:00
andrey-git
794c82b8ba Make translation utils properly handle null selected language. 2017-10-27 23:24:55 +03:00
Paulus Schoutsen
ce2b4b6765 Migrate to pagedown for markdown parsing (#514)
* Migrate to pagedown

* Lint
2017-10-27 07:53:21 -07:00
Andrey
7bd7f14913 Call build from bootstrap. Allow nonfingerprinted mdi. (#476) 2017-10-26 20:26:38 -07:00
Paulus Schoutsen
f8ab2dc08f Fix warnings 2017-10-25 20:09:09 -07:00
Adam Mills
ef36a31ac0 Polymer 2.0 ES6 class conversions (#478) 2017-10-25 19:38:13 -07:00
Adam Mills
29fad98754 Core POC support for polymer i18n (#227)
* Core POC support for polymer i18n

* Move translation from core.js to html

* Replace fetch with XHR

* Convert translation pipeline to gulp

* Convert from polyglot to Polymer localize

* Pass through missing keys for custom panels

* Store promise to be reused

* Use cacheFirst sw handler for translations

* Write full filenames to translationFingerprints

* Precache en translation

* Convert home-assistant-main to ES6 class

* Create a localization mixin

* Cleanup

* Add polymer tags to annotate for linter

* Rename fingerprints to translationMetadata

* Build translation native names into metadata

* Add language selection UI to sidebar

* Provide separate message namespace argument

* Store language/resources on hass object

* Store translationMetadata on hass

* Move language selector to config panel

* Temporarily hide language selector

* Small cleanups

* Use dynamic-align for more flexible layout

* Migrate to fetch API

* Only send change events for user selection events

* Update for new linting rules

* Migrate build_frontend changes
2017-10-25 18:12:23 -07:00
c727
7b61826134 Return "-" if AttributeValue = null (#473)
* Return "undefined" if AttributeValue = null

* use var value

* Return "-" if null

* Triple equals
2017-10-25 00:34:03 -07:00
Lukas Barth
27ce63bb0c WIP: add an input_datetime (#418)
* Initial work on input_datetime

* Properly format date and time

* Linting

* Use dom-if

* Converting to Polymer 2 class

* Some linting

* Cache domain, linting

* More linting

* Use on-value-changed instead of value observer.

Also, fix off-by-one b/c of 0-indexed months. Thanks, JavaScript.
2017-10-24 23:17:26 -07:00
milanvo
cbc447515f Frontend change of persistent notification - avoid long text in entity state (#470) 2017-10-21 21:59:10 +02:00
Andrey
ed233364ec Fix media player card (#471) 2017-10-20 09:03:29 -07:00
c727
7d86f30a6b remove script from HIDE_MORE_INFO (#466) 2017-10-19 23:18:29 -07:00
Adam Mills
9c0845d595 Convert card elements to ES6 classes (#465)
* Convert cards to ES6 classes

* Bonus bugfix debugging card functionality

* Properly scope UPDATE_INTERVAL

* Condense simple property declarations
2017-10-16 22:09:55 -07:00
dersger
de64c766f6 Update media player progress bar (#458)
* Show progress during paused state
* Hide progress if there's no media_duration
* Only periodically update when playing and showing progress
2017-10-15 23:30:07 -07:00
Tentoe
2222944137 computeFiltersArray was supposed to return an array but return value was implicitly converted to a string (#442) (#457) 2017-10-15 23:28:08 -07:00
Sebastian Muszynski
cef0d64f08 Sensor attributes added to the more-info-fan panel. (#455) 2017-10-15 23:22:45 -07:00
R1chardTM
fa061a2603 Fix input number box step/min/max and accept decimals (#451) 2017-10-15 23:22:12 -07:00
moose51789
0bd330c76b correct input_number slider (#449)
the nested div was unnecessary for the hidden attribute, placing directly on the paper-slider works fine. this behavior caused the slider to overflow the screen at specific points.
2017-10-15 23:20:59 -07:00
Andrey
bc0d44ca81 Upgrade eslint to 4.8.0 (#445)
* Upgrade eslint

* Fix post-merge errors
2017-10-08 21:08:06 -07:00
Paulus Schoutsen
121c0d0879 Remove Safari toggle hack (#447) 2017-10-08 21:06:00 -07:00
Abílio Costa
3c30e65756 Fix group order inside defined views (#443)
* fix group ordering inside views

* fix order for when default_view is specified

* improve for loop and fix lint

* Revert "improve for loop and fix lint"

This reverts commit 3fffbcff3999f729e30993113bd39eb858221aa2.

* Revert "fix order for when default_view is specified"

This reverts commit f2c5614da1b225ee87d0e6fcc8d6414b130a78b6.

* Revert "fix group ordering inside views"

This reverts commit 470fa2e907c3bdde899b09be1baa23fd24ba2ef0.

* only request group sorting for default view

* fix lint

* sort groups based on view-defined order

* optimize group sorting

* fix typo
2017-10-08 08:11:33 -07:00
Andrey
29acf77eb5 Upgrade packages (#444) 2017-10-05 21:22:41 -07:00
Andrey
b0791abb9a Add support for history_graph component (#432)
* Add support for history_graph component

* Change dev 3s to intended 60s

* Address comments

* Make card header consistent
2017-10-05 09:15:17 -07:00
BioSehnsucht
890dbc6ad7 Rename input_slider to input_number and add numeric text box option (#431)
* * Rename input_slider to input_number
* Update input_number to Polymer 2.0
* Update input_number to optionally display slider, input box, or both

* input_number support either input box or slider mode, but not both

* input_number : change service from select_value to set_value
2017-10-03 21:34:43 +02:00
Sebastian Muszynski
91c8b4eb23 State on (active) color added for device class "fan". (#437) 2017-09-30 13:07:22 -05:00
Andrey
acf853f713 Change color of state-badge icon according to rgb or brightness (#436)
* Change color of state-badge icon according to rgb or brightness

* Remove unneeded edit

* Set minimum brightness at 15%. Clear previous timeout
2017-09-26 22:48:12 -07:00