23 Commits

Author SHA1 Message Date
Zack Barett
ce77ddf365
Revert #10991 (#12618) 2022-05-07 02:48:57 +00:00
Johann Vanackere
8da73d49d7
Terms based entities search (#10991) 2022-04-26 19:39:58 -05:00
J. Nick Koston
145e5d7bc6
Format sensors with state class duration (#12426) 2022-04-26 02:07:11 +00:00
Zack Barett
63c9b3f830
Don't show toggle always on more info (#11640) 2022-02-14 16:21:46 +01:00
Michael Gorven
1010777139
Add weekday to formatTimeWeekday() (#11020) 2022-01-24 19:25:45 +01:00
Paulus Schoutsen
39774c0e02
Allow trigger reconnect from external bus (#10819) 2021-12-09 13:30:20 -08:00
Bram Kragten
fd6785b593
Use backend for day month stats in energy dashboard (#10728) 2021-11-30 09:22:06 -08:00
Josh McCarty
b188c4ec81
Measurement number format (#10459) 2021-11-01 09:32:22 +01:00
Philip Allgaier
0c038398aa
Fix various slugify() issues + add tests (#10383) 2021-10-25 16:26:38 +02:00
Bram Kragten
2936865c55
Bump typescript, lint, prettier (#10108) 2021-09-30 12:39:03 +02:00
Bram Kragten
1bccbd4173
Use browser default time and number formatting with polyfills if needed (#9481)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-29 23:34:52 +00:00
Paulus Schoutsen
304fad3f49
Remove unused HTML tests (#6053) 2020-05-26 16:02:05 -07:00
Bram Kragten
82f80db558
Update typescript, prettier, tslint -> eslint (#5536)
* Update typescript, prettier, tslint -> eslint

* Organize imports

* Use glob for eslint fix react import
2020-04-14 09:05:45 -07:00
Bram Kragten
3254478d05 Remove wct-browser-legacy (#3686) 2019-09-11 12:46:57 -06:00
c727
1a3966e55f Localize ha-relative-time (#1241)
* Localize relative time

* Add mixin

* Pass hass to ha-relative-time

* Remove debug

* Add hass

* Add hass everywhere

* Remove value from translation file

* Add quotes to attributes

* Lint

* Fix in hassio file

* Use current placeholder syntax

* Use correct syntax

* Move to ui.components
2018-06-01 09:55:00 -04:00
Paulus Schoutsen
e57d9f7751
Add websocket helpers to polymer (#1187)
* Add websocket helpers to polymer

* Lint

* Upgrade to home-assistant-js-websocket@2.0.0
2018-05-18 13:25:01 -04:00
Paulus Schoutsen
a4afc2e37a
Polymer 3 modulize (#1154)
* Version bump to 20180510.1

* Fix hass util

* Fix translations

* Bye paper-time-input

* Add webpack config

* Add webpack to package.json

* Fix translation import

* Disable web animations polyfill bad import

* Disable importHref import

* Update webpack config to build authorize.js

* Build translations json

* Build frontend correctly

* Run eslint --fix

* Load markdown JS on demand (#1155)

* Add HTML imports (#1160)

* Fix localize (#1161)

* Fix Roboto in build (#1162)

* Load web animations polyfill (#1163)

* P3: Fix chart js (#1164)

* P3: Fix Chart JS

* Update timeline package

* P3: panel resolver (#1165)

* WIP

* Initial importing of panels

* Fix panel resolver

* Fix automation and script editor (#1166)

* Expose Polymer and Polymer.Element on window (#1167)

* Remove unused import

* eslint --fix

* Es5 build (#1168)

* Build for ES5

* Fix build_frontend

* Remove stale comment

* Migrate to use paper-material-styles (#1170)

* Send parsed date to history/logbook (#1171)

* Fork app storage behavior (#1172)

* Add paper input with type time (#1173)

* Fix authorize

* Lint

* Sort imports

* Lint

* Remove eslint-html

* Do not lint authorize.html

* Fix polymer lint

* Try chrome 62 for wct

* P3: Add patched iconset (#1175)

* Add patched iconset

* Lint

* Test with latest Chrome again

* Use less window.hassUtil

* Teporarily use my fecha fork

* Import correct intl.messageFormat

* Update wct-browser-legacy to 1.0.0

* Include polyfill in right place

* Fix IntlMessageFormat

* Fix test not having a global scope

* Rollup <_<

* Fork app-localize-behavior

* Disable wct tests

* Lint
2018-05-15 13:31:47 -04:00
Adam Mills
3412edb843 Compute state display tests (#643)
* Move computeDomain and format functions to js

* Add tests for computeStateDisplay

* Always recalculate state display

* Remove LANGUAGE from hassUtils object

* Move AppLocalizeBehavior import to mixins

* Import mixins to state-card-display

* Safety check on computeStateDisplay

* Don't store computed domains on stateObj

* Integration tests for state-card-display

* Include extractDomain code in polymer repo

* Remove util function null checking

* Dont render test element without hass and stateObj

* Revert "Don't store computed domains on stateObj"

This reverts commit e3509d71823ff5e42a4dcf4849a98c5bb6cb391c.

* Revert "Always recalculate state display"

This reverts commit 27c24e2694ee6f7c147782532268b3a67998d49b.
2017-11-20 21:46:36 -08: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
7c489e69bb Make tests pass (#374)
* wct misbehaves on hyphen casing on FF

* Upgrade web-component-tester to 6.0.0

* Update some bower packages to prevent conflicts

* Pin webcomponentsjs to 1.0.4
2017-08-04 22:56:52 -07:00
Andrey
1530c0c386 Allow custom 2nd line in state-info (#253)
* Allow custom 2nd line in state-info

* add tests for new functionality
2017-04-09 10:25:00 -07:00
Andrey
35c086a594 More tests for state-info.html (#256)
* Remove andrey-git keys. Add Android 7.0 emulator

* Use Chrome on Android 7.0

* Try a test that should fail on shadow dom.

* Change test

* try lightOrShadow

* More tests
2017-04-08 06:05:13 -07:00
Andrey
57512211d7 Add web-component-tester tests (#255)
* Use travis.yml from polymer

* Update .travis.yml

* Try wct tests

* Encrypt Sauce env

* More test config

* Update2

* try to remove souce_connect

* Try another config

* More browsers

* Clean tabs, test shadow dom.
2017-04-03 22:51:20 -07:00