Compare commits

...

2383 Commits

Author SHA1 Message Date
Paulus Schoutsen
c7f7e72340 Merge pull request #3377 from home-assistant/dev
20190717.1
2019-07-17 15:10:22 -07:00
Paulus Schoutsen
1205322342 Bumped version to 20190717.1 2019-07-17 15:09:26 -07:00
Joakim Plate
4cefb9715c Make sure sliderType is set first (#3376)
* Make sure sliderType is set first

* No need for a separate name
2019-07-17 15:08:51 -07:00
Paulus Schoutsen
35b38db57f Merge branch 'master' into dev 2019-07-17 15:08:31 -07:00
Paulus Schoutsen
4f72eb5416 Remove check 2019-07-17 13:01:12 -07:00
Paulus Schoutsen
f3d1a421f4 Update pipeline 2019-07-17 13:00:34 -07:00
Paulus Schoutsen
f3c24dc0b3 Remove tsc check 2019-07-17 12:41:07 -07:00
Paulus Schoutsen
e4cbdc29a2 Update azure-pipelines-release.yml 2019-07-17 12:33:46 -07:00
Paulus Schoutsen
c985977efc Update pipeline 2019-07-17 12:17:52 -07:00
Paulus Schoutsen
8fb991c5ce Merge remote-tracking branch 'origin/dev' 2019-07-17 12:15:52 -07:00
Paulus Schoutsen
210c63ad14 Bumped version to 20190717.0 2019-07-17 12:15:13 -07:00
Paulus Schoutsen
8167b05cad Update translations 2019-07-17 12:15:12 -07:00
Paulus Schoutsen
e5a916032a Merge pull request #3375 from home-assistant/dev
20190717.0
2019-07-17 12:09:36 -07:00
Paulus Schoutsen
56745b3723 Set up CI with Azure Pipelines
[skip ci]
2019-07-17 11:50:07 -07:00
Paulus Schoutsen
ddf2c6cc0f Add Azure pipelines for release 2019-07-17 11:48:50 -07:00
Joakim Plate
84df2bd531 Make sure slider type updates with changes to temperatures (#3374) 2019-07-17 11:32:22 -07:00
Paulus Schoutsen
42c3e3e46c Differentiate Heat/Cool (#3371) 2019-07-16 23:51:15 -07:00
Paulus Schoutsen
5141e0e923 Merge pull request #3370 from home-assistant/fixes-yo
Fixes yo
2019-07-16 22:56:10 -07:00
Paulus Schoutsen
b87c94e395 Fix typing 2019-07-16 22:41:47 -07:00
Paulus Schoutsen
55aa5a0d12 Scroll device list when goes out of screen. Fixes #3343 2019-07-16 21:43:15 -07:00
Paulus Schoutsen
eaaeb10c6d Store width before searching to avoid jumping 2019-07-16 21:34:12 -07:00
Paulus Schoutsen
567769be5a Use hass icons for search input 2019-07-16 21:33:09 -07:00
Paulus Schoutsen
3ebb30bd48 Only show advanced mode toggle for admins. Fixes #3369 2019-07-16 20:43:05 -07:00
Paulus Schoutsen
09a19d2e7f Allow scrolling notification drawer. Fixes 3366 2019-07-16 20:38:35 -07:00
Paulus Schoutsen
fabc49d17e Fix theme color in dev index.html 2019-07-16 20:36:40 -07:00
Paulus Schoutsen
00e9155546 Merge pull request #3368 from home-assistant/dev
20190715.0
2019-07-15 13:50:25 -07:00
Paulus Schoutsen
8238b700b0 Update translations uno mas 2019-07-15 13:38:44 -07:00
Paulus Schoutsen
5ff33224ed Remove unused keys 2019-07-15 13:15:50 -07:00
Paulus Schoutsen
07dee9c5bb Update translations 2019-07-15 13:11:37 -07:00
Paulus Schoutsen
9eaeafdd6a Bumped version to 20190715.0 2019-07-15 13:05:11 -07:00
Paulus Schoutsen
beb1fe1e64 Update translations 2019-07-15 13:05:06 -07:00
Timmo
cdb2a1a424 Integrations - Add Search (#3361)
*  Add search to flow picker

* 🔨 Autofocus

* 🔨 squash extra space

* Update src/dialogs/config-flow/step-flow-pick-handler.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Update src/dialogs/config-flow/step-flow-pick-handler.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
2019-07-14 13:47:33 -07:00
Paulus Schoutsen
8bbc442b7e Correctly check frontend version (#3365) 2019-07-14 13:30:50 -07:00
Sean Mooney
7a12cbf96e Add link to Alexa skill on Cloud page (#3364)
This adds a direct link to the Home Assistant Alexa skill, which is more convenient than telling the user to search for it themselves. On mobile devices it can open the skill directly in the Alexa app which is nice.

Also tweaked the wording from "activate" to "enable" since that is what Amazon uses.
2019-07-12 23:45:27 -07:00
Paulus Schoutsen
e36454f08f Fix token card not showing (#3362) 2019-07-12 22:36:36 -07:00
Timmo
3865c1943c 🔨 Fix mqtt dev tools missing class (#3359) 2019-07-12 15:31:38 -07:00
Paulus Schoutsen
e7e3edfd97 Merge pull request #3358 from home-assistant/dev
20190712.0
2019-07-12 14:58:22 -07:00
Paulus Schoutsen
4bdc82f0ed Bumped version to 20190712.0 2019-07-12 14:44:22 -07:00
Paulus Schoutsen
8e3b41885d Update translations 2019-07-12 14:44:07 -07:00
Paulus Schoutsen
8f3d5fdb7d Fix scrollbar on Firefox (#3357) 2019-07-12 14:42:56 -07:00
Timmo
f258aa2818 Replace standard browser scrollbar for overview and sidebar (#3350)
* 📜 Replace standard browser scrollbar for overview and sidebar

* 🔨 Remove from main
2019-07-12 13:08:51 -07:00
Charles Garwood
b4dd971829 Z-Wave Config Panel Updates (#3349)
* Display network status, hide buttons if network is stopped.

* travis/lint updates

* Review comments

* Add translations

* lint

* Missed a translation

* lint again...

* Fix unsubscribe function?

* lint again

* Remove state_str

* Code review comments

* fix for lit re-rendering & possible undefined value
2019-07-12 13:07:50 -07:00
Sean Mooney
e99d6f8e6a Fix incorrect tooltip on Add Person button (#3355)
The tooltip for the add person button incorrectly says "Create Area" when hovered. This should fix it, I think.
2019-07-12 12:07:46 -07:00
Paulus Schoutsen
cc969e547c Add frontend version to info (#3354) 2019-07-12 11:18:01 -07:00
Paulus Schoutsen
0e1ae3926b Merge pull request #3348 from home-assistant/dev
20190710.0
2019-07-10 10:35:46 -07:00
Charles Garwood
60c2bcc483 Convert Z-Wave panel to TS/Lit (#3345)
* Convert zwave-network to typescript/lit

* Convert zwave-network to ts/lit

* Updates per code review

* missed one (hass? => hass!)

* Remove constructor
2019-07-10 10:26:17 -07:00
Paulus Schoutsen
5d8e34e8be Show menu button when Hassio supervisor UI runs on old HA (#3347) 2019-07-10 10:10:56 -07:00
Paulus Schoutsen
14a430a059 Bumped version to 20190710.0 2019-07-10 09:36:44 -07:00
Paulus Schoutsen
4ae347949a Update translations 2019-07-10 09:36:35 -07:00
Paulus Schoutsen
cdd007cc54 Ensure load order (#3346) 2019-07-10 09:27:25 -07:00
Paulus Schoutsen
2929db5ba4 Fix fonts precaching (#3338)
* Fix font urls

* Don't zopfli nonexisting fonts
2019-07-10 08:18:04 -07:00
Paulus Schoutsen
628692b2e9 Do not cache onboarding page (#3337) 2019-07-10 08:17:51 -07:00
Paulus Schoutsen
7cfdc24a8c Fix test translations (#3339) 2019-07-10 08:17:41 -07:00
Paulus Schoutsen
1c69aa122b Merge pull request #3334 from home-assistant/dev
20190705.0
2019-07-05 16:09:33 -07:00
Paulus Schoutsen
25afb73ed7 Bumped version to 20190705.0 2019-07-05 15:25:01 -07:00
Paulus Schoutsen
5b5384032d Update translations 2019-07-05 15:25:01 -07:00
Jérôme W
a9d221147f Fix timer stops updating when changing views in LL (#3248)
* Fix timer stops updating when changing views in LL

* Test if _config exists in connectedCallback()

* Update hui-timer-entity-row.ts
2019-07-05 15:22:29 -07:00
Paulus Schoutsen
4fdbec93b3 Migrate for climate 1.0 (#3333)
* Migrate for climate 1.0

* Update demo

* Fix gallery

* Add preset to thermostat card

* Fix climate entity row
2019-07-05 15:13:53 -07:00
Thomas Lovén
0a8703ad0a Allow selecting text in error-card (#3330)
* Allow selecting text in error-card

* Still use default cursor
2019-07-02 20:28:39 -07:00
Paulus Schoutsen
ddc11c1b12 Merge pull request #3329 from home-assistant/dev
20190702.0
2019-07-02 10:33:40 -07:00
Paulus Schoutsen
317f43277e Bumped version to 20190702.0 2019-07-02 10:32:43 -07:00
Paulus Schoutsen
bf90642c9b Update translations 2019-07-02 10:32:40 -07:00
Paulus Schoutsen
6f77992387 Random fixes (#3328)
* Fix scroll into view on first load

* Do not crash when deleting script/automation

* Disable swipe on notification drawer
2019-07-02 10:31:48 -07:00
David F. Mulcahey
deaccd6cd4 Add info to ZHA device card (#3327)
* add zha domain icon

* update device card
2019-07-02 10:13:59 -07:00
Paulus Schoutsen
d7371ace6a Sidebar improvements (#3325)
* Do not contract sidebar when undocking sidebar

* Do not hide text until fully contracted

* Cancel hover expanding on tablets

* Open notifications on the left

* Set property before opening

* Fix check for support scroll if needed
2019-07-01 10:35:10 -07:00
Paulus Schoutsen
453b1000c1 Merge branch 'dev' 2019-06-30 23:03:58 -07:00
Paulus Schoutsen
8c1aff7505 Check supported func properly 2019-06-30 23:03:51 -07:00
Paulus Schoutsen
adf002c154 Merge branch 'dev' 2019-06-30 23:02:58 -07:00
Paulus Schoutsen
ed7b81e7a4 Hide scrollbars on sidebar during expanding 2019-06-30 23:02:48 -07:00
Paulus Schoutsen
c0f6ee6a32 Merge branch 'dev' 2019-06-30 22:52:44 -07:00
Paulus Schoutsen
9408df6099 Fix Firefox 2019-06-30 22:52:31 -07:00
Paulus Schoutsen
157bfd6f80 Space out sidebar 2019-06-30 22:21:37 -07:00
Paulus Schoutsen
99da7ebfe6 Merge branch 'dev' 2019-06-30 21:58:32 -07:00
Paulus Schoutsen
6911df9ac4 Fix sidebar in Safari 2019-06-30 21:58:02 -07:00
Paulus Schoutsen
8daeaab40b Merge pull request #3324 from home-assistant/dev
20190630.0
2019-06-30 15:20:33 -07:00
Paulus Schoutsen
45c3c78b31 Bumped version to 20190630.0 2019-06-30 15:15:56 -07:00
Paulus Schoutsen
a64a35b861 Update translations 2019-06-30 15:15:52 -07:00
Paulus Schoutsen
5a25627219 Stop playing video when more info is closed (#3318) 2019-06-30 15:14:42 -07:00
Paulus Schoutsen
203b14613f Show a notification dot on toggle menu button in narrow mode (#3323)
* Show a notification dot on toggle menu button in narrow mode

* Fix lint

* Move menu button to sidebar

* Fix height sidebar
2019-06-30 15:02:53 -07:00
Paulus Schoutsen
0a7cb39500 Add transition delay to sidebar expand 2019-06-28 14:46:54 -07:00
Paulus Schoutsen
42e75e7cdf Move notifications to the sidebar (#3317)
* Move notifications to the sidebar

* Close when navigating

* Lint
2019-06-28 14:23:29 -07:00
Paulus Schoutsen
58e6be12af Add developer tools panel (#3313) 2019-06-28 08:34:29 -07:00
Paulus Schoutsen
618d25ce48 Fix person showing value in badge 2019-06-28 08:28:52 -07:00
Paulus Schoutsen
9974510067 Merge pull request #3311 from home-assistant/dev
20190627.0
2019-06-27 17:56:22 -07:00
Paulus Schoutsen
2faa0c5979 Bumped version to 20190627.0 2019-06-27 17:48:44 -07:00
Paulus Schoutsen
1479647062 Update translations 2019-06-27 17:48:38 -07:00
Paulus Schoutsen
3becefaf8b Add a couple of labels (#3310)
* Add a couple of labels

* Add some more labels
2019-06-27 17:47:19 -07:00
Paulus Schoutsen
e804e62e66 Add advanced mode (#3298)
* Add advanced mode

* Move advanced mode to profile

* Add promo for advanced mode
2019-06-27 16:17:32 -07:00
Paulus Schoutsen
2c3cc1fbc7 experimental sidebar (#3306)
* experimental sidebar

* Change default docked sidebar to true

* remove delay

* Push things down

* Speed up animation

* Always open on big screens

* Move things around

* Final tweaks

* Lint

* Don't open on hover logo
2019-06-27 15:23:05 -07:00
Paulus Schoutsen
58cc76ab5a Merge pull request #3305 from home-assistant/dev
20190626.0
2019-06-26 09:10:32 -07:00
Paulus Schoutsen
5783cdb0d2 Bumped version to 20190626.0 2019-06-26 09:05:00 -07:00
Paulus Schoutsen
4f07caebc6 Update translations 2019-06-26 09:04:56 -07:00
Paulus Schoutsen
c4b75b4534 Fix typo in font definition (#3304) 2019-06-25 23:39:50 -07:00
Paulus Schoutsen
ae82eabaec Fix link colors in hassio addon view 2019-06-25 13:08:11 -07:00
Paulus Schoutsen
f8d3e55fe0 Fix home zone so it doesn't overlap the city name 2019-06-25 10:17:26 -07:00
Paulus Schoutsen
1462db0a76 Merge pull request #3303 from home-assistant/dev
20190624.1
2019-06-24 22:15:47 -07:00
Paulus Schoutsen
86b36fb76b Bumped version to 20190624.1 2019-06-24 22:06:35 -07:00
Paulus Schoutsen
c6194622b1 Update translations 2019-06-24 22:06:14 -07:00
Paulus Schoutsen
be5c3efb23 Fix source maps 2019-06-24 22:05:34 -07:00
Paulus Schoutsen
999c243c94 Better error report on Alexa (#3302) 2019-06-24 17:36:12 -07:00
Paulus Schoutsen
483f82e554 Add demo sw (#3301) 2019-06-24 10:39:27 -07:00
Paulus Schoutsen
e91f4567c2 Merge pull request #3300 from home-assistant/dev
20190624.0
2019-06-24 08:26:03 -07:00
Paulus Schoutsen
029467139d Bumped version to 20190624.0 2019-06-24 08:14:17 -07:00
Paulus Schoutsen
29649abe3d Update translations 2019-06-24 08:14:12 -07:00
Mauricio Bonani
266c80320b Upgrade mdi to 3.7.95 (#3299)
* Update yarn.lock

* Update package.json
2019-06-22 18:18:28 -07:00
Paulus Schoutsen
ae51300446 Revert Polymer to 3.1 (#3297)
* Revert Polymer to 3.1

* Only install 1 polymer
2019-06-22 12:36:30 -07:00
Thomas Lovén
cbdb222f72 Import extra_html_url using js instead of deprecated link tags (#3288)
* import extra_html_url using js instead of deprecated link tags

* Import modules instead

* Address comment

* Rename variables for es5 scripts

* Address comments
2019-06-21 20:55:53 -07:00
Paulus Schoutsen
98c419ff03 Switch to woff2 fonts (#3296) 2019-06-21 12:48:20 -07:00
Paulus Schoutsen
88b9348a81 Add map to demo (#3295) 2019-06-21 11:05:01 -07:00
Paulus Schoutsen
3e8606781e Fix typo 2019-06-21 09:31:15 -07:00
Paulus Schoutsen
875afbd7ae Merge pull request #3294 from home-assistant/dev
20190620.0
2019-06-20 23:52:08 -07:00
Paulus Schoutsen
3139b914d7 Bumped version to 20190620.0 2019-06-20 23:43:45 -07:00
Paulus Schoutsen
212a44b6ae Update translations 2019-06-20 23:43:39 -07:00
Paulus Schoutsen
60551168a2 Update demo (#3292)
* Update demo

* Kill homebridge hidden

* Add missing air translation

* Hide demo card with localStorage.hide_demo_card

* adjust size of demo card if hidden

* disable lint rule
2019-06-20 23:40:56 -07:00
Robbie Trencheny
32d9a6884f Add some aria-labels for use with fastlane snapshot (#3293) 2019-06-20 23:16:50 -07:00
Mauricio Bonani
7002ab27c0 Upgrade mdi to 3.6.95 (#3291)
* Update package.json

* Update yarn.lock
2019-06-20 14:45:43 -07:00
Bram Kragten
15c101109e Update hui-map-card.ts (#3289) 2019-06-20 08:34:34 -07:00
Paulus Schoutsen
316fed953a Merge pull request #3286 from home-assistant/dev
20190619.0
2019-06-19 16:21:38 -07:00
Paulus Schoutsen
93934449c0 Bumped version to 20190619.0 2019-06-19 16:11:45 -07:00
Paulus Schoutsen
894a25c98e Update translations 2019-06-19 16:11:41 -07:00
Paulus Schoutsen
90f0d9fa00 Add button for Alexa to sync entities (#3284)
* Add button for Alexa to sync entities

* Lint
2019-06-19 11:43:17 -07:00
Paulus Schoutsen
83889a8fd7 Filter met during onboarding (#3285)
* Filter met during onboarding

* Hide temp values with no value
2019-06-19 11:42:46 -07:00
Paulus Schoutsen
4cfc429e75 Hide unused entities in the demo 2019-06-18 11:59:51 -07:00
Paulus Schoutsen
2df829b79d Hide unused entities in the demo 2019-06-18 11:57:21 -07:00
Paulus Schoutsen
7baf6382ac Merge pull request #3282 from home-assistant/dev
20190618.0
2019-06-18 11:47:21 -07:00
Paulus Schoutsen
7d1f689ed9 Bumped version to 20190618.0 2019-06-18 11:21:56 -07:00
Paulus Schoutsen
4f448553f6 Update translations 2019-06-18 11:21:52 -07:00
David F. Mulcahey
dd56671974 Add NWK to ZHA device card and fix search again (#3278)
* add nwk to device info

* fix search again
2019-06-18 11:14:37 -07:00
Paulus Schoutsen
d8e0fd0ba5 Limit demo card mobile (#3281)
* Limit demo card on mobile

* Remove unused deps

* Remove tabs from ARS demo

* Set title to Home Assistant
2019-06-18 10:44:11 -07:00
Paulus Schoutsen
a9320d4baf Fix import 2019-06-17 20:12:29 -07:00
Kevin Cooper
42475becf1 Fix for more-info-alarm_control_panel when using code_arm_required (#3052)
* Fix for more-infoalarm_control_panel when using code_arm_required

* Update more-info-alarm_control_panel.js
2019-06-17 15:08:14 -07:00
Justin Bassett
c30aca8484 Dark Mode for Map Card (#3250)
* Ability to change tile set from light_all to dark_all through card config.

* Use correct boolean.

* Fix possible undefined.

* Use correct value.
2019-06-14 20:37:34 -07:00
Paulus Schoutsen
25bdf50737 Use users location 2019-06-14 15:25:41 -07:00
Paulus Schoutsen
4a60479b74 Merge branch 'dev' 2019-06-14 15:09:54 -07:00
Paulus Schoutsen
f6d651304c Fix demo 2019-06-14 15:09:42 -07:00
Paulus Schoutsen
85990c20ed Merge pull request #3275 from home-assistant/dev
20190614.0
2019-06-14 14:40:40 -07:00
Paulus Schoutsen
8ea98023a5 Bumped version to 20190614.0 2019-06-14 13:41:39 -07:00
Paulus Schoutsen
acceaea410 Update translations 2019-06-14 13:41:33 -07:00
Paulus Schoutsen
d609155022 Make setView not async (#3274) 2019-06-14 13:40:16 -07:00
Paulus Schoutsen
1add5077af Add Alexa report state (#3272) 2019-06-14 13:30:35 -07:00
Paulus Schoutsen
a9cac343b0 Preload LL (#3273)
* Preload LL

* Remove using observer
2019-06-14 13:30:20 -07:00
Paulus Schoutsen
1b441a752e Manage Alexa entities (#3269)
* Reorg cloud components

* Allow managing Alexa entities in the UI

* Use observer

* Update mwc version

* Tweak some UI
2019-06-13 11:57:56 -07:00
Ofek Ashery
03fee95f68 Allow to copy text in the notifications panel (#3257) 2019-06-12 21:01:14 -07:00
Paulus Schoutsen
7fa4b18843 Group managed entities (#3268) 2019-06-12 21:00:41 -07:00
Paulus Schoutsen
7b0fb949fd Upgrade some deps (#3266)
* Upgrade some deps

* Fix linting
2019-06-12 17:29:16 -07:00
Paulus Schoutsen
df10cff842 Add loading screen when external step done (#3261) 2019-06-11 15:19:12 -07:00
Penny Wood
8b93af1b56 Via Hub Rename (#3254) 2019-06-11 08:36:48 -07:00
Tor Arne Vestbø
a396a4e666 Pass credentials (cookies e.g.) when loading JavaScript assets (#3259)
The behavior of 'crossorigin' without a value is the same as
anonymous, which means user credentials such as cookies,
client-side SSL certificates or HTTP authentication will
not be passed on.

We want the preload links to work even when they are behind
a proxy that requires an authentication cookie, such as
Cloudflare Access (CF_Authorization), so we need to explicitly
send credentials with the "use-credentials" value.

ES modules are always fetched with CORS, with anonymous being
the default. Some browsers (Chromium) will realize that the
request is to the same origin, and send credentials anyways,
while others (Safari) will not, so we need to explicitly send
credentials to make sure they load in all cases.

See https://jakearchibald.com/2017/es-modules-in-browsers/
2019-06-10 13:41:59 -07:00
Paulus Schoutsen
8f278ec4bc Merge pull request #3247 from home-assistant/dev
20190604.0
2019-06-04 08:50:01 -07:00
Paulus Schoutsen
032ebce0bc Bumped version to 20190604.0 2019-06-04 08:48:41 -07:00
Paulus Schoutsen
bb60b42f98 Update translations 2019-06-04 08:48:37 -07:00
Paulus Schoutsen
21ed717287 Link to beta release notes for beta release in hassio (#3243) 2019-06-04 08:47:40 -07:00
Paulus Schoutsen
2d056bad81 Allow picking location on a map (#3244)
* Allow picking location on a map

* Add some better defaults

* Close connection before navigation
2019-06-04 08:47:02 -07:00
Paulus Schoutsen
8297e9e215 Merge pull request #3242 from home-assistant/dev
20190602.0
2019-06-02 13:52:11 -07:00
Paulus Schoutsen
4ccf450ad4 Bumped version to 20190602.0 2019-06-02 13:45:20 -07:00
Paulus Schoutsen
fc056869a7 Update translations 2019-06-02 13:45:16 -07:00
Paulus Schoutsen
0bd5ff34d4 Google banner background to support incorrect themes (#3241) 2019-06-02 13:44:01 -07:00
Paulus Schoutsen
ffd272d3fe Fix refreshing cloud prefs after changing Google prefs (#3240) 2019-06-02 13:37:55 -07:00
Paulus Schoutsen
1eee186e79 Fix toast on Firefox (#3239) 2019-06-02 16:13:10 +02:00
Paulus Schoutsen
3a05b1124a Merge branch 'dev' 2019-06-01 14:26:26 -07:00
Paulus Schoutsen
d14c6125da Bumped version to 20190601.0 2019-06-01 14:26:13 -07:00
Paulus Schoutsen
3ee357178e Update translations 2019-06-01 14:26:12 -07:00
Paulus Schoutsen
8f6fdea4eb Merge pull request #3238 from home-assistant/dev
20190601.0
2019-06-01 14:25:00 -07:00
Paulus Schoutsen
be6b25f5be Google Entities updates (#3237)
* Match Google Expose default with backend for when no config value set

* Allow toggling domains
2019-06-01 14:23:32 -07:00
Paulus Schoutsen
be4dd5b20b Fix Google manage entity button on small screens (#3234) 2019-05-31 21:26:47 -07:00
Paulus Schoutsen
fe4811b278 Allow saving unit system (#3235) 2019-05-31 15:51:12 -07:00
Paulus Schoutsen
d376457cec Merge pull request #3231 from home-assistant/dev
20190530.0
2019-05-30 09:32:06 -07:00
Paulus Schoutsen
35e82a8e26 Bumped version to 20190530.0 2019-05-30 09:31:29 -07:00
Paulus Schoutsen
03735f0539 Update translations 2019-05-30 09:31:23 -07:00
Paulus Schoutsen
4cc812c1bf Always have a gauge base unit (#3229) 2019-05-30 08:42:02 -07:00
Paulus Schoutsen
bdacd05fab Pass connection instead of hass (#3228) 2019-05-30 08:41:52 -07:00
Paulus Schoutsen
ab157fdbff Correctly warn if Google entities defined in YAML (#3230) 2019-05-30 08:41:44 -07:00
Paulus Schoutsen
d94223a61e Dynamic update panels (#3227) 2019-05-30 08:41:32 -07:00
Paulus Schoutsen
ebe3198c27 Merge pull request #3225 from home-assistant/dev
20190529.0
2019-05-29 08:55:07 -07:00
Paulus Schoutsen
2b2d2effd2 Bumped version to 20190529.0 2019-05-29 08:42:17 -07:00
Paulus Schoutsen
8092e24af8 Update translations 2019-05-29 08:42:06 -07:00
Paulus Schoutsen
f019bb095d Allow edit default config (#3220) 2019-05-29 08:39:38 -07:00
Paulus Schoutsen
1ad9d2e54c Add UI to manage Google Entities exposed to Cloud (#3224)
* Add UI to manage Google Entities exposed to Cloud

* Add selected count
2019-05-29 08:38:52 -07:00
Paulus Schoutsen
b2b18cb814 Convert cloud dashboard to use Lit router (#3223) 2019-05-28 14:31:51 -07:00
Bram Kragten
e595637a10 Show toast when Lovelace config was updated from a different place (#3218)
* Refresh other lovelace UI's when making a change

* Move to toast with refresh button

* Change to `hass-notification`

* Reload on reconnect

- Fix for duration = 0
- Reload on reconnect

* Listen to ready of connection

* Update src/managers/notification-manager.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* use showToast, listen connection-status,  noCancelOnOutsideClick -> option

* Remove unused import
2019-05-27 14:54:14 -07:00
Bram Kragten
d10a0b3b6c Update translations.js (#3219) 2019-05-26 20:59:52 -07:00
Penny Wood
c24f8a2115 Allow editing of device name (#3209)
* Allow editing of device name

* Patches

* Update dialog-device-registry-detail.ts
2019-05-26 07:27:33 -07:00
Paulus Schoutsen
7691e3f2c2 Fix duplicate tab when regen LL (#3217) 2019-05-25 12:30:44 -07:00
Paulus Schoutsen
6bbe8ff39f Merge pull request #3214 from home-assistant/dev
20190523.0
2019-05-23 13:31:26 -07:00
Paulus Schoutsen
a1e9b4938f Bumped version to 20190523.0 2019-05-23 13:20:59 -07:00
Paulus Schoutsen
c826596529 Update translations 2019-05-23 13:20:55 -07:00
Paulus Schoutsen
7f47079750 Notify about remote portal (#3211)
* Notify about remote portal

* Update text
2019-05-23 13:16:50 -07:00
Bram Kragten
642ba1adc3 Create dummy translation on dev (#3213) 2019-05-23 13:16:24 -07:00
Paulus Schoutsen
fe80c7fe0e Warn that only automations in automations.yaml are editable (#3200) 2019-05-23 12:28:17 -07:00
Paulus Schoutsen
9309c5a1b6 Update Lit-HTML to 1.1 (#3210) 2019-05-22 19:36:07 -07:00
Paulus Schoutsen
575eb22608 Add UI to set/update core config (#3208)
* Add UI to set/update core config

* Types

* Disable editor in config.yaml mode

* Fix type
2019-05-21 20:12:07 -07:00
Paulus Schoutsen
be0bef3f1b Allow automation/script delete (#3194) 2019-05-16 17:44:46 +02:00
Paulus Schoutsen
970286bbba Merge pull request #3197 from home-assistant/dev
20190514.0
2019-05-14 07:06:58 +02:00
Paulus Schoutsen
087c3b9c0e Bumped version to 20190514.0 2019-05-14 06:55:20 +02:00
Paulus Schoutsen
b12d1b13ca Update translations 2019-05-14 06:55:14 +02:00
Paulus Schoutsen
d0410e0884 Fix Safari 10 (#3196) 2019-05-14 06:52:20 +02:00
Paulus Schoutsen
a1bf06ceb2 Fix CSS 2019-05-14 06:15:50 +02:00
Thomas Lovén
d99744e054 ha-card migration - step #2 (#3187)
* Convert profile settings to ha-card

* Convert dev- panels to ha-card

* Convert empty-state-card to ha-card

* Convert zha config to ha-card - UNTESTED

* Convert zwave config to ha-card - UNTESTED

* Convert various panels to ha-card - UNTESTED

* Convert gallery to ha-card
2019-05-13 01:24:43 -07:00
Paulus Schoutsen
e02d11a51f Pimp script editor (#3192)
* Pimp script editor

* Use property for define

* Show toasts
2019-05-12 21:28:25 -07:00
Paulus Schoutsen
1b50100b6c Pimp automation picker (#3193) 2019-05-12 20:30:49 -07:00
Timmo
309fecc9f3 Support icon_height for entity button (#2800)
* 🎨 Add support for icon_height

* 🎨 Add icon_height to config ui

* 🔨 Don't expose css for icon_height

* 🔨 Post rebase changes and allow advanced css height
2019-05-12 20:25:48 -07:00
Timmo
46f3add520 🔨 Fix hassio new add-on repository height (#3191) 2019-05-12 11:14:18 +02:00
Timmo
a89f0bd1cd Add Search to Hassio add-on store (#3108)
*  Add search to hassio add-ons

* 👕 Fix linter error

* 👕 Lint fixes

* 🔥 Remove search from dashboard for this PR

* 🔥 Remove search from dasboard in this PR

* 🔨 Suggested changes

* 🔨 Change to fireEvent

* 🔨 Convert definition

* 🔥 Fix imports

* 🔥 Revert styling test

* 🔨 Fix search

* 🔨 CSS fix

* 🔨 Add smaller message to show no results found in repo

* 🔨 Fixes

* 🔨 CSS fixes

* 🔨 Add types

* 🎨 Max width

* 🔨 Fix margin jump

* 🔨 Add working memoizeOne

* 👕 Fix linting / error on build
2019-05-12 11:13:16 +02:00
Paulus Schoutsen
8408b8d41f Merge pull request #3190 from home-assistant/dev
20190510.0
2019-05-10 14:21:52 -07:00
Paulus Schoutsen
13761a20c5 Bumped version to 20190510.0 2019-05-10 14:13:20 -07:00
Paulus Schoutsen
03d17a9761 Update translations 2019-05-10 14:13:15 -07:00
Paulus Schoutsen
5501cccc67 Fix custom panel paths (#3188) 2019-05-10 14:12:08 -07:00
Paulus Schoutsen
9340d9068e Hash demo files in index.html (#3185) 2019-05-09 20:19:15 -07:00
Paulus Schoutsen
bbdaa4b7c1 Merge pull request #3184 from home-assistant/dev
20190509.0
2019-05-09 15:48:22 -07:00
Paulus Schoutsen
c87c782b2c Merge remote-tracking branch 'origin/master' into dev 2019-05-09 15:40:33 -07:00
Paulus Schoutsen
f0b1cd9032 Bumped version to 20190509.0 2019-05-09 15:38:37 -07:00
Paulus Schoutsen
2ed532e055 Update translations 2019-05-09 15:38:33 -07:00
Paulus Schoutsen
f70dafa192 Autofocus the first element in the auth page (#3177) 2019-05-09 15:36:43 -07:00
Paulus Schoutsen
af6ade8eb6 Fix editing wait actions in script editor (#3181) 2019-05-09 15:36:29 -07:00
Paulus Schoutsen
d77ae840d8 Fix the ES5 adapter for custom panel (#3182)
* Fix the ES5 adapter for custom panel

* Update custom-panel.ts

* Update custom-panel.ts

* Update custom-panel.ts
2019-05-09 15:36:16 -07:00
Paulus Schoutsen
968eae7727 Add external step (#3183)
* Add external step

* Automatically open external step
2019-05-09 15:36:05 -07:00
Paulus Schoutsen
97d8a68455 Unused entities to check picture-element cards (#3180)
* Check picture element cards for unused entities

* Remove unused entities from Arsaboo config

* Remove unused entities Isa

* Remove unused entities kernehed

* Remove unused entities jimpower
2019-05-09 09:53:29 -07:00
Paulus Schoutsen
7827cec212 Fix demo camera images (#3179) 2019-05-09 09:43:52 -07:00
Paulus Schoutsen
746ad588ef 20190508.0 (#3176)
* Prevent default form action (#3172)

* Use areas when generating Lovelace config (#3175)

* Use areas when generating Lovelace config

* Add missing return type

* Convert auth-flow to TypeScript/Lit (#3174)

* Change ha-pick-auth-provider to typescript

* Convert auth-flow to TypeScript/Lit

* Make sure we block emulated mouse events when touch is used (#3173)

* Trim text

* Update translations

* Bumped version to 20190508.0
2019-05-08 20:12:05 -07:00
Paulus Schoutsen
95e918b6ac Bumped version to 20190508.0 2019-05-08 19:58:30 -07:00
Paulus Schoutsen
1e82cc22e4 Update translations 2019-05-08 19:58:26 -07:00
Paulus Schoutsen
fb2e1e5ebb Trim text 2019-05-08 19:57:03 -07:00
Joakim Plate
fe2ae965b3 Make sure we block emulated mouse events when touch is used (#3173) 2019-05-08 19:53:34 -07:00
Jason Hu
8924a5f043 Convert auth-flow to TypeScript/Lit (#3174)
* Change ha-pick-auth-provider to typescript

* Convert auth-flow to TypeScript/Lit
2019-05-08 19:52:55 -07:00
Paulus Schoutsen
32e68c1a4b Use areas when generating Lovelace config (#3175)
* Use areas when generating Lovelace config

* Add missing return type
2019-05-08 16:34:53 -07:00
Jason Hu
89a35a0062 Prevent default form action (#3172) 2019-05-08 07:48:33 -07:00
Paulus Schoutsen
484b1c8444 Merge pull request #3171 from home-assistant/dev
20190507.0
2019-05-07 22:48:16 -07:00
Paulus Schoutsen
cd5e274ffa Fix demo 2019-05-07 22:39:00 -07:00
Paulus Schoutsen
f466a53ed4 Bumped version to 20190507.0 2019-05-07 22:31:15 -07:00
Paulus Schoutsen
1d40d94774 Update translations 2019-05-07 22:31:10 -07:00
Paulus Schoutsen
82e8ca2754 Alow setting up integrations during onboarding (#3163)
* Allow setting up integrations during onboarding

* Fix compress static

* Don't compress static files in CI

* Remove unused file

* Fix static compress disabled in CI build

* Work with new integration step

* Import fix

* Lint

* Upgrade HAWS to 4.1.1
2019-05-07 22:27:10 -07:00
Paulus Schoutsen
8c904fb012 Sort config flow picker (#3170) 2019-05-07 21:07:59 -07:00
Paulus Schoutsen
fa13b95498 Use collections for registries (#3168)
* Use collections

* Fix bugs

* Lint
2019-05-07 20:57:23 -07:00
Paulus Schoutsen
289611363e Use named export for events mixin (#3166) 2019-05-07 17:47:44 -07:00
Paulus Schoutsen
cb7048db23 Type debounce (#3167) 2019-05-07 17:47:31 -07:00
Paulus Schoutsen
b9f86f735b Use named export for compare (#3169) 2019-05-07 17:47:19 -07:00
Thomas Lovén
0e044acaa9 ha-card migration Step #1 Configuration (#3161)
* Improvements to ha-card. Better paper-card compatibility

* Remove named slots

* Tweak distance between header and contents

* Further css tweaking

* Convert config dashboard to ha-card

* Convert cloud configuration to ha-card.

* Convert integrations configuration to ha-card.

* Convert user configuration to ha-card.

* Convert core configuration to ha-card

* Convert person, entity and area config to ha-card

* Convert automation and script editor to ha-card

* Convert customization editor to ha-card
2019-05-07 09:26:56 -07:00
Thomas Lovén
1223766523 ha-card migration. Step #0: improvements to ha-card. (#3144)
* Improvements to ha-card. Better paper-card compatibility

* Remove named slots

* Tweak distance between header and contents

* Further css tweaking
2019-05-07 09:24:39 -07:00
Paulus Schoutsen
db65af9c22 Split up onboarding code (#3158) 2019-05-04 11:59:43 -07:00
Paulus Schoutsen
fcdb1b48a2 Isolate hass state from base el (#3157) 2019-05-03 20:26:01 -07:00
Thomas Lovén
8729410dce Remove spinners in firefox (#3150) 2019-05-03 09:38:28 -07:00
Sean Mooney
adb92e1708 add target="_blank" to match all other links on page (#3154)
* add target="_blank" to match all other links on page

* adds target="_blank" to ensure link opens in new tab

* adds target="_blank" to ensure link opens in new tab

* attempting to fix travis error

* resolve prettier errors hopefully

* Update ha-automation-picker.js

* Update ha-automation-picker.js

* Lint

* Lint
2019-05-03 09:37:06 -07:00
Joakim Plate
81088e0d07 Simplify list selection 2 (#3156)
* light: use attr-for-selected for effect

* vacuum: use attr-for-selection for speed
2019-05-03 08:54:38 -07:00
Paulus Schoutsen
34129cc7cb Migrate demo to gulp (#3152)
* Migrate demo to gulp

* Tweak demo migration to gulp

* Feature detect demo

* Gen icons
2019-05-02 22:41:58 -07:00
Paulus Schoutsen
530be9155b Dont cache requests to auth APIs (#3151) 2019-05-02 19:49:39 -07:00
Paulus Schoutsen
aa33b00a1f Merge pull request #3149 from home-assistant/dev
20190502.0
2019-05-02 11:51:22 -07:00
Paulus Schoutsen
57b917f297 Bumped version to 20190502.0 2019-05-02 11:45:03 -07:00
Paulus Schoutsen
aad7dc5d7d Update translations 2019-05-02 11:44:58 -07:00
Paulus Schoutsen
6c41c7b1ab Gulpify build pipeline (#3145)
* Gulpify build pipeline

* Update build frontend script

* Fixes

* Limit service worker to latest build

* Use shorthand

* Fix hassio build
2019-05-02 11:35:46 -07:00
Yosi Levy
8b98f375c2 Added tooltip to state badge element (#3137) 2019-05-02 11:31:14 -07:00
Joakim Plate
8a86dd8426 Simplify list selection (#3148)
* water_heater: Use attr-for-selected for operation mode

* climate: Use attr-for-selected for operation, fan, swing mode

* fan: Use attr-for-selected for speed

* fan: skip extra property

* climate: drop extra property

* water_heater: avoid extra property

* media_player: drop extra variable for source and sound_mode

* water_heater: missed change
2019-05-02 07:09:06 -07:00
Robbie Trencheny
5b12ca94e9 Add missing key for app configuration in sidebar (#3146)
* Add missing key for app configuration in sidebar

* avoid lokalise round trip
2019-05-01 22:49:33 -07:00
Paulus Schoutsen
652cd10483 Use Node 12 (#3141)
* Use Node 12

* Remove tests that don't work in Node
2019-04-30 12:16:41 -07:00
Paulus Schoutsen
ca0ded8587 Fix webpack chunkname 2019-04-30 11:38:17 -07:00
Joakim Plate
f943393ade Switch source selection to same logic as SoundMode with using (#3136)
actual value as selected item instead of index.

This avoids the bug with selected:
https://github.com/PolymerElements/paper-dropdown-menu/issues/197
https://github.com/PolymerElements/paper-dropdown-menu/issues/114

Fixes: #3022

Side note: it actually mainly hides the issue. If we should allow a key,
value setup with source being a key and the display value being a
localized value it likely would return.
2019-04-30 10:21:43 -07:00
Thomas Lovén
d8f21d99af Use named slots to have advanced ha-card headers (#3127)
* Use named slots to have advanced ha-card headers

* Fix header text color
2019-04-29 11:31:27 -07:00
Paulus Schoutsen
73ef03e33f Use signed path for camera snapshot (#3138) 2019-04-29 11:27:40 -07:00
Paulus Schoutsen
c34dde815c Merge pull request #3134 from home-assistant/dev
20190427.0
2019-04-27 22:16:54 -07:00
Paulus Schoutsen
1e85880d7b Bumped version to 20190427.0 2019-04-27 22:08:20 -07:00
Paulus Schoutsen
57abd4ae07 Update translations 2019-04-27 22:08:15 -07:00
Paulus Schoutsen
2624c1544b Disable the show in sidebar toggle when HA < 0.92 (#3124)
* Hide the show in sidebar toggle on 0.92

* Update hassio/src/addon-view/hassio-addon-info.js

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-04-27 22:02:47 -07:00
Paulus Schoutsen
1e72ffc0c2 Fix input select more info (#3132)
* Fix input select more info

* Lint
2019-04-27 22:02:26 -07:00
Yosi Levy
8ca70ace4c Tooltip picture elements (#3111)
* Added noTitle option to supress tooltip

* Additional strings

* Updated name

* refactored name

* Refactored strings

* Refactored to allow null in title
2019-04-27 13:03:31 -07:00
Thomas Lovén
d66cf3f787 Allow changing state-icon element icon (#3122) 2019-04-27 10:37:57 -07:00
Paulus Schoutsen
44df0f698c Conditionally attach external message bus (#3131) 2019-04-27 10:37:15 -07:00
Thomas Lovén
981dd5df63 Basic input-datetime entity row (#3121)
* Basic input-datetime entity row

* Address review comments

* Fix imports
2019-04-25 21:47:46 -07:00
Paulus Schoutsen
cd6250c495 Don't proxy external accessible covers (#3120) 2019-04-24 21:05:38 -07:00
Paulus Schoutsen
2f36304f06 Move picking new integration into dialog (#3110) 2019-04-24 12:51:41 -07:00
Paulus Schoutsen
30471b7cfb Merge pull request #3119 from home-assistant/dev
20190424.0
2019-04-24 11:13:42 -07:00
Paulus Schoutsen
ff2f573dd0 Bumped version to 20190424.0 2019-04-24 11:07:34 -07:00
Paulus Schoutsen
38ddbf45c2 Update translations 2019-04-24 11:07:29 -07:00
Robbie Trencheny
d79bf5e07e Forward haptic events to external apps (#3116)
* Forward haptic events to external apps

* Fix types
2019-04-24 11:03:59 -07:00
Robbie Trencheny
d05b1ef9cc Add connection events to bus (#3117)
* Add connection events

* Fix types

* Fix order
2019-04-24 10:56:53 -07:00
Pascal Vizeli
c260591d4d Hass.io update labels (#3114)
* Hass.io update labels

* Update hassio-addon-info.js
2019-04-24 08:58:35 +02:00
Paulus Schoutsen
87a7e63e31 Fix tests 2019-04-23 20:37:56 -07:00
Paulus Schoutsen
a5dd3755e1 Add external app message bus (#3112)
* Add support for a app configuration button in the sidebar

* Add event to types

* Fire connection events so that app knows when to hide its fallback settings button

* Add external message bus

* Fixes

* Update external_config.ts

* Remove icon from gen-icons

* Add fireMessagE

* msgId -> id

* Rename to externalBus

* Log messages in dev

* Add should update to ha-sidebar


Co-authored-by: Robbie Trencheny <me@robbiet.us>
2019-04-23 20:23:56 -07:00
Pascal Vizeli
ad40d9927b Hass.io: Support automated panel integration (#3113)
* Hass.io: Support automated panel integration

* Update hassio-addon-info.js

* fix lint
2019-04-23 12:24:06 +02:00
Robbie Trencheny
f4cfbc6678 Initial haptics support (#3099)
* Initial haptics support

* Move window stuff into types.ts

* Fire haptic events instead of expecting a messageHandler

* Style fixes, linting fixes

* Only allow whitelisted haptics

* Make requested changes
2019-04-22 09:24:30 -07:00
Jc2k
b3c1bead39 Allow 'Discovered' flows to have title placeholders (#3106)
* Allow 'Discovered' flows to have title placeholders

* Feedback from review
2019-04-21 10:58:51 -07:00
Paulus Schoutsen
d220e56239 Merge pull request #3104 from home-assistant/dev
20190419.0
2019-04-19 17:01:05 -07:00
Paulus Schoutsen
f967b4940a Bumped version to 20190419.0 2019-04-19 16:57:51 -07:00
Paulus Schoutsen
f44d5dca1c Update translations 2019-04-19 16:57:50 -07:00
Paulus Schoutsen
a9ed4e7943 Regenerate LL when attached (#3102)
* Regenerate when attached

* Fix lint
2019-04-19 14:53:26 -07:00
Paulus Schoutsen
a404acbf44 Add support for secure devices pin (#3101) 2019-04-19 14:53:16 -07:00
Robbie Trencheny
eaa2ce1462 Ask users if they want to install iOS app (#3100) 2019-04-18 20:54:52 -07:00
Joakim Plate
bdd8699709 Add device_class for switches (#3096) 2019-04-18 15:12:17 -07:00
Paulus Schoutsen
9f0b20634a Merge pull request #3098 from home-assistant/dev
20190417.0
2019-04-17 09:39:05 -07:00
Paulus Schoutsen
a70d9195db Bumped version to 20190417.0 2019-04-17 09:31:40 -07:00
Paulus Schoutsen
d86253d582 Update translations 2019-04-17 09:31:23 -07:00
Paulus Schoutsen
d5a313445f Update user-agents to 2.0.0 (#3087) 2019-04-15 19:56:31 -07:00
Joakim Plate
f979febb76 Match list of classes for cover to backend (#3090)
1d2e9b6915/homeassistant/components/cover/__init__.py (L52)

Fixes #3089
2019-04-15 19:56:23 -07:00
Jason Hunter
a1a2a78531 Add Stream Element (#3086)
* initial commit for stream element

* lit elements are apparently not self closing

* add disconnectedCallback to teardown on unload

* refactor stream element to UpdatingElement and bundle MJPEG handling with it

* attach video element for HLS native

* update hui-image to optionally show a live camera view (video or mjpeg)

* fix playing inline video on iOS

* implement review feedback

* Fix update bugs

* Tweaks

* Fix stateObj changed
2019-04-15 19:55:13 -07:00
Paulus Schoutsen
6ed2d288e6 addon -> add-on (#3094) 2019-04-15 10:53:53 -07:00
ktnrg45
5c8e5d3539 Added padding definition for type game (#3059) 2019-04-13 20:35:24 -07:00
Paulus Schoutsen
bbae3291e1 Support ingress custom panels (#3085)
* Support ingress custom panels

* Fix types

* Add disabled placeholder to network card
2019-04-11 11:42:52 -07:00
Paulus Schoutsen
5dbd5c7395 Fix hassio unavailable dashboard & update card 2019-04-10 15:38:33 -07:00
Paulus Schoutsen
038f7b43d5 Merge pull request #3080 from home-assistant/dev
20190410.0
2019-04-10 15:00:36 -07:00
Paulus Schoutsen
671e564037 Fix hassio dashboard available maybe 2019-04-10 15:00:19 -07:00
Paulus Schoutsen
8298d810a8 Bumped version to 20190410.0 2019-04-10 14:46:23 -07:00
Paulus Schoutsen
7428479f6b Update translations 2019-04-10 14:46:16 -07:00
Paulus Schoutsen
6b85910cdb Fix classname 2019-04-10 14:45:39 -07:00
Paulus Schoutsen
4d7bb0df7d Fix hassio loading 2019-04-10 12:46:42 -07:00
Paulus Schoutsen
26a39b1bb8 Hassio fixes 2019-04-10 12:32:21 -07:00
Ian Richardson
e23f046c4d 🕶 convert hui-persisten-notification-item to TypeScript/LitElement (#3032) 2019-04-09 22:25:34 -05:00
Paulus Schoutsen
fe73213643 Fix hassio 2019-04-09 16:31:07 -07:00
Paulus Schoutsen
cbe5355d38 Small fixes 2019-04-09 14:26:30 -07:00
Paulus Schoutsen
81b232f01e Stop experimenting in dev for hassio 2019-04-09 14:26:18 -07:00
Paulus Schoutsen
3e6be45f1f Revert webpack upgrade for hassio fix? 2019-04-09 13:58:48 -07:00
Paulus Schoutsen
d26ed6fdb6 fix sorting and use user given name if available (#3072) 2019-04-09 13:53:44 -07:00
Pascal Vizeli
eda168247c Add description support to UI (#3079) 2019-04-09 22:53:10 +02:00
Paulus Schoutsen
4d2390daf4 Hass.io snapshots -> Lit (#3078)
* Hass.io snapshots

* Fix rootnav
2019-04-09 13:05:56 -07:00
Paulus Schoutsen
5b861bb4c6 Fix hassio in prod? 2019-04-09 00:17:34 -07:00
Paulus Schoutsen
be6d89bb7a Revert a tsconfig change (#3075) 2019-04-08 17:08:59 -07:00
Paulus Schoutsen
1c17210948 Clean up even more (#3074) 2019-04-09 00:15:46 +02:00
David Mulcahey
5257715145 fix sorting and use user given name if available 2019-04-08 07:31:33 -04:00
Paulus Schoutsen
8df9ac9dfa Fix paper-icon-button fail (#3069) 2019-04-07 23:50:58 -07:00
Paulus Schoutsen
559164e159 fix showing edit entity icon in more info dialog (#3066)
* fix showing cog

* Remove unused value

* Lint
2019-04-07 12:17:06 -07:00
Paulus Schoutsen
70072786a1 Clean up hassio tabs page (#3068)
* Clean up hassio tabs page

* Make load optional

* Fix bug
2019-04-07 11:58:51 -07:00
Paulus Schoutsen
cda29fcd07 Clean up hassio panel (#3067)
* Clean up hassio panel

* Extract dialog manager code

* Convert markdown dialog to show-dialog

* Extract snapshot dialog
2019-04-07 17:45:56 +02:00
Paulus Schoutsen
31e351c75c Show features translation 2019-04-06 22:36:30 -07:00
Paulus Schoutsen
cadcd845cc Add guard for addon 2019-04-06 12:32:45 -07:00
Paulus Schoutsen
b07f95f956 Add hassio ingress support (#3062)
* Add hassio ingress support

* Remove logging

* Better integrate

* Add badge

* FIx type
2019-04-06 09:28:08 +02:00
Markus Jankowski
7f99f1d9be add device_class_signal_strength (#3058) 2019-04-04 21:40:27 -04:00
Yosi Levy
8c7cdda3d3 Converted paper-dialog to ha-paper-dialog (#3055)
* Converted paper-dialog to ha-paper-dialog

* Fixed paths

* Fixed double import

* Fixed orphan tags

* Moved to /components and renamed

* Fixed hassio

* Fix travis issue
2019-04-04 15:11:43 -07:00
Paulus Schoutsen
8c222bb467 Remove unnecessary resolutions (#3056)
* Remove vaadin-lumo-styles resolution

* Remove iron-overlay-behavior resolution

* Remove polymer and shadycss resolutions

* Add lumo-styles back to resolution
2019-04-03 23:07:35 -07:00
Markus Jankowski
4dfdebb00a Add device_class_power to sensor (#3057) 2019-04-03 21:55:14 -07:00
Paulus Schoutsen
3947adbab4 Upgrade workbox to v4 (#3053)
* Upgrade workbox to v4

* Update dmeo config
2019-04-02 15:38:14 -07:00
Paulus Schoutsen
81eab0bf1b Fix arsaboo demo unit (#3050)
* Fix arsaboo demo unit

* Migrate to C
2019-04-02 12:25:35 -07:00
Paulus Schoutsen
0c406335f5 Upgrade deps (#3038)
* Upgrade deps

* Revert workbox back to 3

* Fix var name
2019-04-02 12:14:10 -07:00
yosilevy
109c40b2d3 RTL fix for drop downs (#3047)
* RTL fix for drop downs

* Added new file
2019-04-02 11:53:00 -07:00
David F. Mulcahey
a362b08113 buffer time to prevent edge misses (#3049) 2019-04-02 11:52:01 -07:00
Paulus Schoutsen
438d155c45 Fix imports (#3040) 2019-04-02 11:50:57 -07:00
Paulus Schoutsen
75f5325048 Simplify hass subpage (#3039) 2019-04-02 11:50:50 -07:00
David F. Mulcahey
8f5f14fada Add targeted joins to ZHA config panel (#3048)
* initial targeted add

* mains powered devices only

* fix prop reference

* import

* fix targeted join
2019-04-02 11:48:06 -07:00
Paulus Schoutsen
8e290be9e7 Merge pull request #3044 from home-assistant/dev
20190331.0
2019-03-31 19:52:11 -07:00
Paulus Schoutsen
9f97b583a8 Bumped version to 20190331.0 2019-03-31 19:51:21 -07:00
Paulus Schoutsen
8993e39c38 Update translations 2019-03-31 19:51:17 -07:00
Paulus Schoutsen
dc61a62149 Edit card fixes (#3043) 2019-03-31 19:38:11 -07:00
Paulus Schoutsen
22fdac4189 Reset camera prefs (#3042) 2019-03-31 19:38:01 -07:00
Paulus Schoutsen
c52f437ee6 lint 2019-03-29 16:46:58 -07:00
Paulus Schoutsen
549db23ff5 lint 2019-03-29 16:46:48 -07:00
Paulus Schoutsen
6775a094c9 Merge pull request #3037 from home-assistant/dev
20190329.0
2019-03-29 16:45:26 -07:00
Paulus Schoutsen
74a255add1 Bumped version to 20190329.0 2019-03-29 16:44:32 -07:00
Paulus Schoutsen
a77c951d55 Update translations 2019-03-29 16:44:27 -07:00
Paulus Schoutsen
e3896c359a Register service worker during login (#3036) 2019-03-29 16:43:42 -07:00
Paulus Schoutsen
56e3514e40 Allow changing camera prefs (#3035)
* Check camera supported_features before streaming

* Allow mutating camera prefs

* Move when we fetch prefs
2019-03-29 16:43:32 -07:00
Paulus Schoutsen
f4319d9b13 Fix custom panel/hass.io navigation (#3034)
* Hass.io: use correct function for firing evenet

* Fix navigation from custom panel
2019-03-29 16:40:28 -07:00
David F. Mulcahey
c134464f6a fix area and user given name display (#3033) 2019-03-29 14:02:13 -07:00
Ian Richardson
7b821aa363 🕶 convert hui-notification-item-template to TypeScript/LitElement (#3029)
* 🕶 convert hui-notification-item-template to TypeScript/LitElement

* address review comments
2019-03-27 22:05:07 -07:00
Paulus Schoutsen
4e6d00cf5c Merge pull request #3030 from home-assistant/dev
20190327.0
2019-03-27 21:31:53 -07:00
Paulus Schoutsen
22e5792a8f Upgrade mwc (#3031) 2019-03-27 21:24:46 -07:00
Paulus Schoutsen
e3e0d4618e Bumped version to 20190327.0 2019-03-27 21:21:20 -07:00
Paulus Schoutsen
aa1ac8f339 Update translations 2019-03-27 21:21:15 -07:00
Paulus Schoutsen
40863db138 Typo 2019-03-27 21:19:32 -07:00
Ian Richardson
eac37af18c 🕶 convert hui-notification-item to TypeScript/LitElement (#3028) 2019-03-27 21:14:27 -07:00
Ian Richardson
7f8f99a414 🕶 convert hui-configurator-notification-item to TypeScript/LitElement (#3027) 2019-03-27 21:12:56 -07:00
Ian Richardson
a743a2c46b 🛠 Fix button icon/name (#3026) 2019-03-27 21:12:20 -07:00
Jason Hu
adc63e1e5a Fix login form missing abort reason (#3024) 2019-03-27 21:11:07 -07:00
Ian Richardson
1d24b83e5c Align configs (#3019)
* Align configurations

* cleanup

* fix imports
2019-03-27 21:10:55 -07:00
yosilevy
b3f9432ae1 Tab fix in yaml-editor edit card (#3008)
* Fixed tabs not working in yaml editor in edit card

* Improved docs

* Fixed comments

* Added dependencies

* Added typescript mapping

* Fixed data type issue + removed depednency since it breaks the UI. Non final.

* Added iron-overlay-behavior package

* Added dependency

* Update iron-overlay-behavior

* Lint
2019-03-27 21:10:07 -07:00
Ian Richardson
c95a44c570 Consider "on" as valid media state (#3020) 2019-03-27 21:07:04 -07:00
Jason Hu
5080f4c2db Allow auth provider bypass login form (#3025) 2019-03-27 20:54:10 -07:00
Thomas Lovén
44eaa3abad A bit of cleanup in the card editor (#2984)
* edit-card shouldn't need to know about the path

* fix

* Store config as object at all times, convert when necessary

* Hidden is not a property of mwc-button. No need to hide anyway...
2019-03-26 15:31:43 -07:00
Ian Richardson
9a4215b5d5 Upgrade mdi to 3.5.92 (#3007) 2019-03-26 14:59:37 -07:00
Ian Richardson
004892e11a 🔧 Remove unnecessary re-renders (#3014)
* 🔧 Remove unnecessary re-renders

* address review comments

* address review comments
2019-03-26 00:18:16 -05:00
David F. Mulcahey
669358bf1a ZHA add devices page (#2969)
* zha add device page

add device join dialog stub

update dialog stub

fix spinner

add messages and devices to dialog

dialog updates

update dialog

update dialog

add debug info

fix reference

add header

update dialog

test zha gateway message subscription

add device join dialog stub

add messages and devices to dialog

dialog updates

update dialog

add debug info

update dialog

start transitioning to a page instead of a dialog

fix import

subpage

update router

remove old dialog handle

remove dialog parts

make add button call navigate

change extract page

add devices page

cleanup

* update device join page

* auto scroll log

* update css and add device page layout

* fix padding

* fix missing imports

* fix imports

* add -> permit

* left justify device cards to prevent jumping

* conditionally display entity ids

* cleanup

* fix vertical alignment

* review comments

* fix manufacturer overrides
2019-03-25 22:26:32 -05:00
Petro31
435b7d9cee Fix for vertical button spacing on alarm card (#3017)
Vertical spacing on button card doesn't have padding when 3 or more buttons are present and the card size is small.  Small PR.
2019-03-25 22:15:38 -05:00
Ian Richardson
9a2207b5cb badge warning (#3009) 2019-03-25 07:40:04 -07:00
Ian Richardson
324f0bb8a2 warning-element (#3006)
* warning-element

* add warning-element to picture-glance

* add glance-card
2019-03-23 23:10:55 -07:00
yosilevy
3b8f8f8189 Climate RTL fixes (#3002) 2019-03-23 20:30:26 -07:00
Paulus Schoutsen
702c17d658 Convert custom panel to typescript (#2991)
* Convert custom panel to typescript

* Address comments
2019-03-23 11:41:36 -07:00
Ian Richardson
e2a9cf0d3c Handle unavailable entity in conditional-card (#2996)
* Handle unavailable entity in conditional-card

* cleanup
2019-03-23 11:09:30 -07:00
Jason Hu
8aa501b7bd Add Icelandic :flag_is: support (#3003) 2019-03-23 11:08:00 -07:00
yosilevy
45189c9163 Media player RTL fixes (#3001) 2019-03-23 11:06:35 -07:00
heckler
86940f4d42 Edited the delete message on removeEntry to match the resource type (#3000) 2019-03-22 18:06:17 -07:00
Ian Richardson
812c1362a6 Fix typo (#2999)
Fixes https://github.com/home-assistant/home-assistant-polymer/issues/2997
2019-03-22 14:42:30 -05:00
Ian Richardson
6bf9ea5699 entity-button show/hide icon/name (#2936) 2019-03-22 11:55:52 -07:00
Paulus Schoutsen
20ee3452dc Fix sidebar when user is slow to load (#2993) 2019-03-22 10:38:40 -07:00
Paulus Schoutsen
ef18f9eac9 Upgrade lit element to 2.1.0 (#2990)
* UPgrade lit element

* Fix yarn resolving

* Upgrade mwc
2019-03-21 14:56:57 -07:00
Paulus Schoutsen
47faf2768c Merge pull request #2989 from home-assistant/dev
20190321.0
2019-03-21 12:24:23 -07:00
Paulus Schoutsen
a2bed3dd90 Bumped version to 20190321.0 2019-03-21 12:23:15 -07:00
Paulus Schoutsen
4fab0b9717 Update translations 2019-03-21 12:23:11 -07:00
Paulus Schoutsen
06b70e2653 Fix route changing on every hass change (#2988) 2019-03-21 12:22:32 -07:00
Paulus Schoutsen
48aa9a2ad7 Fix blank tabs in Hass.io 2019-03-20 13:46:53 -07:00
Paulus Schoutsen
93d971f72b Merge pull request #2981 from home-assistant/dev
20190320.0
2019-03-20 07:43:56 -07:00
Paulus Schoutsen
7e69df44d7 Bumped version to 20190320.0 2019-03-20 07:42:46 -07:00
Paulus Schoutsen
c743a48cf9 Update translations 2019-03-20 07:42:45 -07:00
Paulus Schoutsen
b82a1c75c4 Fix custom panel doctype (#2977) 2019-03-20 07:36:28 -07:00
Bram Kragten
be9402bd05 Remove console.log (#2979)
Remove console.log probably forgotten?
2019-03-20 07:36:06 -07:00
Paulus Schoutsen
ebae469e7d Warn when remote UI cannot be turned on (#2978)
* Warn when remote UI cannot be turned on

* Lint
2019-03-20 07:35:44 -07:00
Paulus Schoutsen
d0d293fe21 Merge pull request #2976 from home-assistant/dev
20190319.1
2019-03-19 14:03:45 -07:00
Paulus Schoutsen
bd6d082555 Exclude google fonts (#2975) 2019-03-19 14:03:16 -07:00
Paulus Schoutsen
39190dda20 Bumped version to 20190319.1 2019-03-19 14:02:22 -07:00
Paulus Schoutsen
89a8e3da36 Fix property on ha-panel-lovelace 2019-03-19 14:02:15 -07:00
Paulus Schoutsen
49f90671fb Merge pull request #2973 from home-assistant/dev
20190319.0
2019-03-19 11:28:43 -07:00
Paulus Schoutsen
c4ece5e451 Bumped version to 20190319.0 2019-03-19 11:27:18 -07:00
Paulus Schoutsen
799bd973ca Pass narrow to hui-root 2019-03-19 11:26:45 -07:00
Paulus Schoutsen
03dffa9905 Fix hassio panel nav on <0.90 HA 2019-03-19 10:10:26 -07:00
Paulus Schoutsen
1d1c981601 Upgrade HAWS" (#2967) 2019-03-18 19:42:38 -07:00
Paulus Schoutsen
40025d44c2 Add if replace was used when sending navigation events (#2970) 2019-03-18 19:42:27 -07:00
Paulus Schoutsen
42117fcba0 Merge pull request #2971 from home-assistant/dev
20190318.0
2019-03-18 16:54:04 -07:00
Paulus Schoutsen
dc16abd637 Bumped version to 20190318.0 2019-03-18 16:53:14 -07:00
Paulus Schoutsen
8c71746952 Update translations 2019-03-18 16:53:06 -07:00
Paulus Schoutsen
6e504020bf Fix panels race 2019-03-18 10:50:45 -07:00
Paulus Schoutsen
7caf37275d Fix hassio repo editing (#2965) 2019-03-18 09:14:34 -07:00
Paulus Schoutsen
c3f094eb9e Fix hassio nav 2019-03-18 09:05:22 -07:00
Paulus Schoutsen
feb3be1d17 Fix hassio build 2019-03-18 07:41:40 -07:00
Paulus Schoutsen
2fe0398f37 Make Hass.io menu toggle button work in pre and post 90 release (#2959) 2019-03-18 08:53:25 +01:00
David F. Mulcahey
42c7879c4d change integrations link (#2955) 2019-03-17 19:28:41 -07:00
Paulus Schoutsen
2586590bd9 Merge pull request #2953 from home-assistant/dev
20190316.0
2019-03-16 23:22:26 -07:00
Paulus Schoutsen
59ee160f96 Reload data when opening integrations.
Fixes #2952
2019-03-16 23:20:45 -07:00
Paulus Schoutsen
d4bc4bf7bc Bumped version to 20190316.0 2019-03-16 23:16:47 -07:00
Paulus Schoutsen
e2a182acee Update translations 2019-03-16 23:16:42 -07:00
Paulus Schoutsen
88131ade23 Add area ID to area ID modal 2019-03-16 23:15:20 -07:00
Paulus Schoutsen
fb16156f8d Fix routetail + config subrouting (#2951)
* Fix routetail + config subrouting

* Do not update panel when loading a new one

* Fix init skeleton not removed during loading
2019-03-16 23:15:00 -07:00
Jason Hunter
6ba77b4fa5 Fix HLS on Android 9.0 (#2950)
* make sure can play type is "probably"

* check hls.js first and then native
2019-03-16 21:22:42 -07:00
Paulus Schoutsen
c55291dd18 Merge pull request #2945 from home-assistant/dev
20190315.1
2019-03-15 23:18:28 -07:00
Paulus Schoutsen
27b61776e8 Bumped version to 20190315.1 2019-03-15 23:17:13 -07:00
Paulus Schoutsen
baa13a1b6c Update translations 2019-03-15 23:16:00 -07:00
Paulus Schoutsen
23ca1b972d Fix router (#2943)
* Fix router

* Fix demo

* Extract update routes

* Lint
2019-03-15 23:15:16 -07:00
Paulus Schoutsen
2d75e797c7 Hide service toast in the demo (#2942)
* Hide service toast in the demo

* Update provide_hass.ts
2019-03-15 23:10:50 -07:00
Ian Richardson
117ea32586 Fix markdown style (#2944) 2019-03-15 23:10:34 -07:00
Paulus Schoutsen
68909c80ff Hide entity config option for user group (#2941) 2019-03-15 22:43:27 -07:00
Paulus Schoutsen
7aa296e774 move cert info to a dialog (#2940) 2019-03-15 22:43:19 -07:00
Paulus Schoutsen
18df636573 Merge pull request #2935 from home-assistant/dev
20190315.0
2019-03-15 10:42:05 -07:00
Paulus Schoutsen
e1540e45f9 Bumped version to 20190315.0 2019-03-15 10:40:54 -07:00
Paulus Schoutsen
d0b0284200 Update translations 2019-03-15 10:40:50 -07:00
Paulus Schoutsen
915c441a94 Cleanup config flow (#2932)
* Break up config flow dialog

* Allow picking devices when config flow finishes

* Lint

* Tweaks
2019-03-15 10:40:18 -07:00
Ian Richardson
2aec877310 Set entity-button defaults (#2897)
* Set entity-button defaults

tap_action: toggle
hold_action: more-info

* Address review comment, but unsure about lint

* Address review comments
2019-03-15 09:24:10 -07:00
Paulus Schoutsen
1e291e80b7 Fix translation (#2934) 2019-03-15 09:23:21 -07:00
Paulus Schoutsen
7d92eede1f Update translations 2019-03-14 16:28:04 -07:00
Paulus Schoutsen
9fc8c0764c Fix demo stub 2019-03-14 15:38:33 -07:00
Paulus Schoutsen
4ff2d941c3 Lint 2019-03-14 15:35:02 -07:00
Paulus Schoutsen
2349e2f251 Config panel routing (#2928)
* Config panel routing

* Abstract routing

* Convert partial-panel-resolver

* decorator

* Remove showMenu

* Tweaks to make it faster

* Rename update method

* Less aggressive loading
2019-03-14 15:16:46 -07:00
Paulus Schoutsen
8785b03fd8 Menu button simplify (#2930)
* Simplify the hass-menu button

* Purge showMenu boolean
2019-03-14 13:54:46 -07:00
Paulus Schoutsen
92e6c5adfd Bail out early when no stream component (#2927) 2019-03-13 13:32:59 -07:00
Paulus Schoutsen
6015eff8a2 Merge pull request #2926 from home-assistant/dev
20190313.0
2019-03-13 12:47:50 -07:00
Paulus Schoutsen
1451a78dd3 Bumped version to 20190313.0 2019-03-13 12:46:32 -07:00
Paulus Schoutsen
094f558556 Update translations 2019-03-13 12:46:27 -07:00
Paulus Schoutsen
cd466df42c Show message when cert not ready 2019-03-13 12:42:42 -07:00
Jason Hu
a626961ae5 Add Afrikaans and Basque languages support (#2922)
* Add Basque language

* Add Afrikaans language

* Update translations
2019-03-12 19:44:26 -07:00
Paulus Schoutsen
bbc32278d8 Cache thumbnails (#2924) 2019-03-12 19:43:04 -07:00
Paulus Schoutsen
e2ed1a9fd9 Fix bugs (#2923) 2019-03-12 19:41:02 -07:00
Paulus Schoutsen
cd94442455 Merge pull request #2917 from home-assistant/dev
20190312.0
2019-03-12 11:28:16 -07:00
Paulus Schoutsen
c9eea4acc1 Do not allow disabling managed webhooks (#2921) 2019-03-12 11:15:24 -07:00
Paulus Schoutsen
e55ca54509 Lint 2019-03-12 11:14:07 -07:00
Paulus Schoutsen
4118497978 Lint 2019-03-12 11:06:23 -07:00
Paulus Schoutsen
882dc38b12 Support native HLS support (#2920) 2019-03-12 11:03:20 -07:00
Paulus Schoutsen
bcade77075 Update cloud card (#2919) 2019-03-12 10:53:13 -07:00
Paulus Schoutsen
8c13e524b9 Bumped version to 20190312.0 2019-03-12 07:49:41 -07:00
Paulus Schoutsen
ffa47ccf34 Update translations 2019-03-12 07:49:12 -07:00
Paulus Schoutsen
1e22d13588 Cloud remote (#2916)
* Add cloud management

* Update text
2019-03-12 07:43:55 -07:00
Paulus Schoutsen
19804a713d Stream HLS (#2913)
* Stream HLS

* Lint
2019-03-11 22:40:41 -07:00
Paulus Schoutsen
eeaaecd5b7 Show err entity registry (#2914)
* Show error in entity registry

* Fix area translations and error message

* Fix person domain filter
2019-03-11 22:33:17 -07:00
Paulus Schoutsen
9a00c65e3b Fix fetch translation (#2909) 2019-03-11 16:26:59 -07:00
Paulus Schoutsen
c026c65d53 Fix correct dialog-save element registration 2019-03-11 14:43:15 -07:00
Ian Richardson
e9c245015c Add automation to list of domains that can use header toggle (#2900) 2019-03-11 12:12:17 -07:00
David F. Mulcahey
cdde6f6f4c device name (#2901) 2019-03-11 12:12:03 -07:00
Ian Richardson
262537c287 🔧 properly override entity picture with icon (#2902) 2019-03-11 12:10:24 -07:00
Ian Richardson
ec04c80413 add show_icon to glance-card (#2903)
*  add `show_icon` to glance-card

* lint/error
2019-03-11 12:09:32 -07:00
Paulus Schoutsen
86548052e5 Allow changing group (#2908)
* Allow changing group

* Styling + rename

* Fix type
2019-03-11 12:08:09 -07:00
Paulus Schoutsen
1890dd8683 Bumped version to 20190309.0 2019-03-09 21:25:17 -08:00
Paulus Schoutsen
2908eb693a Update translations 2019-03-09 21:25:12 -08:00
Ian Richardson
7fe4084073 🔧 Fix hui-theme-select-editor definition typo (#2899) 2019-03-09 18:23:26 -06:00
Paulus Schoutsen
ee948302ed Convert onboarding to Lit (#2894)
* Convert onboarding to Lit

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Add confirm password field
2019-03-08 13:51:37 -08:00
Jason Hu
f809bf0550 Save user language setting to backend (#2784)
* Save user language setting to backend

* Remove hass.selectedLanguage

* Lint

* Address code review comment

* Refactoring translation

* Code review

* Add back selectedLanguage and local app storage

* Move getTranslations to data/frontend.ts

* Fix mock hass

* Rewrite translations-mixin

* revert no need changes

* Final tweak
2019-03-08 02:49:58 -08:00
Malte Franken
ed9dff99d3 Geolocation source configurable in map editor (#2755)
* wip

* added input list editor

* input label configurable, variables renamed

* new input field working as expected now

* fix lint issues

* fix lint issues

* fix lint issues and code clean-up

* fix lint issues

* uses property decorator now

* change the way css is included

* moved heading from input list editor to map card editor

* moved styling of input list editor to map card editor

* stopped propagating event

* return new value in event instead of changing the input value

* added button to clear value; consolidate value when leaving input field

* fix lint issues

* fix lint issues

* using customElement decorator

* fix lint issues
2019-03-07 14:06:40 -08:00
Ian Richardson
f5d0162aec Convert hui-plant-status-card to TypeScript/LitElement (#2891)
* Convert plant-status card to TS/Lit

* Cleanup
2019-03-07 13:59:21 -08:00
Paulus Schoutsen
32682a2be0 Bumped version to 20190305.1 2019-03-07 10:53:56 -08:00
Paulus Schoutsen
836844a312 Fix checking cloudhooks exist (#2893) 2019-03-07 10:53:52 -08:00
Paulus Schoutsen
8b82fa940e Fix checking cloudhooks exist (#2893) 2019-03-07 10:53:24 -08:00
David F. Mulcahey
d4be171df9 Direct device binding for ZHA config panel (#2856)
* device binding

* review comments

* Update zha-binding.ts
2019-03-07 10:53:06 -08:00
Ian Richardson
57be7ac873 Cleanup cards (#2870)
* Cleanup cards

* Update hui-iframe-card.ts

* address review comments

* Apply paper-styles

https://github.com/PolymerElements/paper-styles/blob/v3.0.1/classes/typography.js

I didn't find `paper-font-common-nowrap` in anything after v1.0.0 but did end up applying what I found here: 923ede74eb/third_party/polymer/v1_0/components/paper-styles/typography.html

* Added comments on paper-style usage
2019-03-07 10:52:39 -08:00
Ian Richardson
a9cecb55ac Update ISSUE_TEMPLATE.md (#2892) 2019-03-07 10:51:57 -08:00
Paulus Schoutsen
1c6bf8b94a Upgrade home-assistant-js-websocket to 3.3.0 (#2887) 2019-03-06 09:52:28 -08:00
Paulus Schoutsen
1c6235546a Swap out babel-minify for terser (#2885) 2019-03-05 13:10:35 -08:00
Paulus Schoutsen
daaaef96b0 Limit service worker (#2886) 2019-03-05 12:42:42 -08:00
Ian Richardson
aa3b6343ed Cleanup Editors and some common elements (#2882)
This is what I do while watching TV 😄
2019-03-05 11:36:17 -08:00
Paulus Schoutsen
3e5d372bbe Merge pull request #2884 from home-assistant/dev
20190305.0
2019-03-05 11:30:44 -08:00
Paulus Schoutsen
3bab8686c8 Bumped version to 20190305.0 2019-03-05 11:30:03 -08:00
Paulus Schoutsen
8c0af2c140 Update translations 2019-03-05 11:29:58 -08:00
Paulus Schoutsen
f008f8f41a Fix map entities (#2883)
* Fix map entities

* Fix switching tabs
2019-03-05 11:28:31 -08:00
Paulus Schoutsen
587a7c3b66 Merge pull request #2880 from home-assistant/dev
20190303.0
2019-03-03 21:55:12 -08:00
Paulus Schoutsen
b25fff9852 Bumped version to 20190303.0 2019-03-03 21:54:40 -08:00
Paulus Schoutsen
45e5f7d0ff Update translations 2019-03-03 21:52:59 -08:00
yosilevy
19c44f7c7b Conditional element support for use in picture-elements (#2865)
* Conditional element support for use in picture-elements

* Refactored

* Refactor to HTMLElement, separated files

* New file

* Added disconnected callback, handled multiple config calls.

* Added update method

* Refactored and simplified - elements contained internally

* Removed excess if

* Refactored also picture elements
2019-03-03 11:27:34 -08:00
Paulus Schoutsen
241d7345d0 Do not fire command if we know component not loaded (#2875) 2019-03-03 10:26:10 -08:00
Jason Hu
34c6356a47 Display service call error message (#2874) 2019-03-01 23:09:57 -08:00
Paulus Schoutsen
9383d80354 Better fix for ha-entity-toggle (#2873) 2019-03-01 11:17:48 -08:00
yosilevy
178e4de452 Fixed history graph tooltip so dates are readable (#2872) 2019-03-01 10:59:17 -08:00
Paulus Schoutsen
787abc4611 Merge pull request #2869 from home-assistant/dev
20190228.0
2019-02-28 17:42:16 -08:00
Paulus Schoutsen
c2948638d6 Bumped version to 20190228.0 2019-02-28 17:41:38 -08:00
Paulus Schoutsen
1db93a4f7b Fix ha-entity-toggle restoring old state (#2868) 2019-02-28 17:41:20 -08:00
Paulus Schoutsen
8f4d24b6da Update translatins 2019-02-28 17:11:59 -08:00
Thomas Lovén
03d4a648f5 Trim overflowing cards (#2864)
* Trim overflowing cards

* Fix picture-elements instead
2019-02-28 14:30:43 -08:00
Paulus Schoutsen
8dba463dd4 Fix define 2019-02-28 12:02:32 -08:00
Paulus Schoutsen
7c21a07a66 fix import 2019-02-28 11:48:42 -08:00
Paulus Schoutsen
82189ab3c6 Fix system health check (#2866)
* Fix system health check

* Update src/panels/dev-info/system-health-card.ts

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-02-28 10:24:19 -08:00
Ian Richardson
c0896d173d cleanup rows (#2863) 2019-02-28 09:48:18 -08:00
Paulus Schoutsen
5032b6e63b Merge pull request #2862 from home-assistant/dev
20190227.0
2019-02-27 16:11:40 -08:00
Paulus Schoutsen
9bf06ca0af Bumped version to 20190227.0 2019-02-27 16:10:34 -08:00
Paulus Schoutsen
4fa1c3e883 Update translations 2019-02-27 16:10:34 -08:00
Paulus Schoutsen
339be43eea Check system health loaded (#2861) 2019-02-27 16:03:50 -08:00
Jason Hu
00c08a09db Fix login issue on FireFox (#2860) 2019-02-27 14:24:26 -08:00
Thomas Lovén
bed257a4eb Add ha-card-box-shadow css variable for themeing (#2855) 2019-02-27 11:30:03 -08:00
Thomas Lovén
b73a2e838a Stop brightness display of light-card from blocking clicks (#2850) 2019-02-26 11:07:06 -08:00
starkillerOG
6580d4ce92 Color picker: dynamic segmentation (#2806)
* Color picker: dynamic segmentation

* Color Picker: dynamic segmentation

* Color Picker: dynamic segments

* == --> ===

* spaces

* use setProperties()

* fix dynamic segements

* Change size position and collor of segmentation button

* add spaces

* Add ;
2019-02-25 20:38:46 -08:00
Victor Vostrikov
8c23674683 Add labels to Person (#2844)
* Added label for Person

* Added icon for Person

* Changed comment for label

* Added translation for person

* Updated translation for person
2019-02-25 12:01:18 -08:00
Paulus Schoutsen
3e28b6f2e2 Convert ha-menu-button to TS (#2825)
* Convert ha-menu-button to TS

* Address comments

* Fix icon searcher
2019-02-25 11:53:46 -08:00
Paulus Schoutsen
6d2e480ed5 Convert ha-url-sync to TS (#2824)
* Convert ha-url-sync

* Change url-sync to be a mixin
2019-02-25 11:11:33 -08:00
Paulus Schoutsen
90a1f7e51c Convert map card to Lit/TS (#2826)
* Convert map card to Lit/TS

* Address comments
2019-02-25 11:10:22 -08:00
yosilevy
63e6506510 Cleanup (#2837) 2019-02-25 11:10:08 -08:00
Paulus Schoutsen
220fec6dc9 Initial commit (#2833) 2019-02-23 20:43:18 -08:00
Paulus Schoutsen
534b18ee30 Convert config flow to Lit/TS (#2814)
* Convert config flow to Lit/TS

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Add missing import

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments
2019-02-23 20:35:11 -08:00
Jason Hu
e406a50b50 Relaod lovelace config if language changed (#2805) 2019-02-23 13:39:14 -08:00
yosilevy
b764e87a00 Force LTR on error popup in dev-info panel (#2834) 2019-02-23 13:30:58 -08:00
yosilevy
b7f62c5822 Fix after conversion to Lit (#2835) 2019-02-23 13:30:32 -08:00
yosilevy
dede819a12 Removed toast (entities turn on/off and OK service calls) (#2822)
* Removed toast when entities turn on/off and services are SUCCESSFULLY called. Still will show on service error.

* Removed unused import

* Removed translations
2019-02-23 11:28:31 -06:00
Yosi Levy
083f0d16ef Initial commit 2019-02-23 17:18:57 +02:00
Paulus Schoutsen
c7500a504d Remove duplicate file 2019-02-22 22:31:39 -08:00
yosilevy
3348405518 Link updates following markdown removal (#2813) 2019-02-22 20:40:21 -08:00
yosilevy
70b2ff3365 Fixed arrow in sub-page to use new arrows and fixed new button icon issues (#2807)
* Fixed arrow in sub-page to use new arrows and fixed new button icon placement problem

* Changed icon to text + added localization
2019-02-22 20:39:39 -08:00
Ian Richardson
a259a12eab 🧹 cleanup elements (#2820)
* 🧹 cleanup elements

* lint
2019-02-22 20:37:27 -08:00
Paulus Schoutsen
979025539e Show person as badges (#2823) 2019-02-22 20:30:12 -06:00
Ian Richardson
6da311078a Convert input-number to Lit/TS (#2792)
* Convert input-number to Lit/TS

Should I worry about width for the state display with slider?

* address review comments

* clientWidth not currently working
* unsure about the typing of _InputElement

* remove unused import

* get clientwidth

* added comment
2019-02-22 12:08:18 -08:00
Paulus Schoutsen
7d1991ac78 Update translations 2019-02-21 16:50:15 -08:00
Paulus Schoutsen
2c2199fb84 Merge pull request #2810 from home-assistant/dev
20190220.0
2019-02-20 07:46:42 -08:00
Paulus Schoutsen
e12da05d4e Bumped version to 20190220.0 2019-02-20 07:45:28 -08:00
Paulus Schoutsen
25d10cf092 Update translations 2019-02-20 07:45:12 -08:00
Paulus Schoutsen
1cdaebd92f Add an event subscribe card (#2804) 2019-02-19 19:33:55 -08:00
Jason Hu
f5d3f1c042 Update windy.com widget used in arsaboo demo (#2803) 2019-02-19 14:51:58 -08:00
Paulus Schoutsen
4073238103 RTL arrow components (#2750)
* New arrow and chevron next+prev components

* New component files

* Refactor

* Updated super + commets

* Fix ha-style
2019-02-19 13:54:02 -08:00
Diogo Gomes
513eaea4f4 Added suppression info (#2790)
* added suppression info

* added to type
2019-02-19 13:53:50 -08:00
Yosi Levy
b4ac3ddfbd Merge branch 'RTL-arrow-components' of https://github.com/yosilevy/home-assistant-polymer into RTL-arrow-components 2019-02-19 20:18:40 +02:00
Yosi Levy
0a269c9e26 Fix ha-style 2019-02-19 20:17:41 +02:00
Paulus Schoutsen
1f2371641e Merge pull request #2802 from home-assistant/dev
20190219.0
2019-02-19 10:14:00 -08:00
yosilevy
8b582f3fcf Merge branch 'dev' into RTL-arrow-components 2019-02-19 20:07:36 +02:00
yosilevy
1afb8f109e Localization updates (#2767)
* Label localization

* Added various missing localization labels + paper-fab RTL location fix (was totally gone behind app-drawer)

* Removed ha-markdown from all translations. Refactored links to separate anchors.
2019-02-19 10:04:33 -08:00
Yosi Levy
5824e0b706 Merge branch 'dev' of https://github.com/home-assistant/home-assistant-polymer into RTL-arrow-components 2019-02-19 20:01:30 +02:00
Paulus Schoutsen
97deed9299 Bumped version to 20190219.0 2019-02-19 09:22:15 -08:00
Paulus Schoutsen
9efcca002d Update translations 2019-02-19 09:22:12 -08:00
Thomas Lovén
7904483272 Register closeEditor as property of hui-editor (#2797)
* Register closeEditor as property of hui-editor

* Belt and suspenders

* Update hui-editor.ts
2019-02-19 09:20:21 -08:00
yosilevy
8a9594d918 Fix missing focus on editor when dialog loaded (#2799) 2019-02-19 09:12:05 -08:00
Timmo
90c09e967a 🔨 Make edit card only close with cancel or save (#2798) 2019-02-19 09:10:58 -08:00
Timmo
5ba1cc5075 🔥 Fixes entity-button icon color (#2796) 2019-02-19 09:09:44 -08:00
Paulus Schoutsen
12064a086b Fix attribute-prop mapping (#2794) 2019-02-19 09:09:07 -08:00
Ian Richardson
32d0e8bf1d less broken thermostat-card (#2793)
* Update hui-thermostat-card.ts

* made light and thermo more consistent
2019-02-18 22:16:18 -08:00
shbatm
79a5947587 Add missing localization for Fan Mode in Climate More Info (#2716)
* Add missing localization for Fan Mode in Climate More Info

* Separate Climate Fan Mode from Operation Mode

* Separated out climate.fan_mode into state_attributess

Separated out climate.fan_mode into state_attributess

* Fix bad merge and update localizeFanMode funtion.
2019-02-18 21:47:15 -08:00
Paulus Schoutsen
c8cda3c817 Add person icon (#2789) 2019-02-18 18:41:56 -08:00
Paulus Schoutsen
197cf0f8cc Merge pull request #2787 from home-assistant/dev
20190218.0
2019-02-18 13:16:19 -08:00
Paulus Schoutsen
392af26503 Bumped version to 20190218.0 2019-02-18 13:14:20 -08:00
Paulus Schoutsen
41343c9774 Update translations 2019-02-18 13:14:14 -08:00
Ian Richardson
4afce7600b Convert timer-row to TS/Lit (#2743)
* Convert timer-row to TS/Lit

* added translations

* cleanup

* address review comments and fix interval

* lint

* address review comments

* address review comments

* address review comments
2019-02-18 13:12:40 -08:00
Paulus Schoutsen
e4b4a94a5f Convert notification-button to Lit/TS and add badge (#2732)
* Convert notification-button to Lit/TS and add badge

* review comments

* address review comments

* css is dumb

* Update package.json

* address review comments

* lint

* address review comments
2019-02-17 22:49:24 -08:00
Ian Richardson
3db79607b7 Cleanup remaining entity not-found warnings (#2779) 2019-02-17 22:45:49 -08:00
Ian Richardson
2ada32be02 Cleanup mwc-button css (#2780)
``font-weight: 500;`
`color: var(--primary-color);`
are not necessary to specify
2019-02-17 22:44:01 -08:00
Ian Richardson
a4ec8719f9 warning when light unavilable (#2771)
* error-card when light unavilable

* single warning element for all

* address review comments

* address review comments
2019-02-17 20:43:46 -08:00
Ian Richardson
5e6b28d965 address review comments 2019-02-17 22:17:45 -06:00
Ian Richardson
7d8f790708 fix for thermostat reporting null target temp (#2730)
* fix for thermostat reporting null target temp

* address review comments
2019-02-17 20:00:21 -08:00
Jason Hu
b6b224be77 Fix user initial in sidebar (#2777) 2019-02-17 10:48:03 -08:00
Paulus Schoutsen
3b008b6359 Revoke old camera image after new one has loaded (#2772) 2019-02-17 09:06:50 -08:00
Jason Hu
da80bfa3c7 Change recommend VSCode TSLint plugin to offical supported one (#2775) 2019-02-16 23:35:10 -08:00
Yosi Levy
fcd06a9000 Updated super + commets 2019-02-16 22:28:46 +02:00
Paulus Schoutsen
762908207f Merge pull request #2769 from home-assistant/dev
20190216.0
2019-02-16 11:59:34 -08:00
Paulus Schoutsen
b40b5b95f1 Bumped version to 20190216.0 2019-02-16 11:59:01 -08:00
Paulus Schoutsen
fe176f2752 Update translations 2019-02-16 11:58:54 -08:00
Paulus Schoutsen
c7796e9557 Allow picking users (#2768)
* Allow picking users

* Update ha-user-badge.ts
2019-02-16 11:58:07 -08:00
Ian Richardson
679457e36a lint 2019-02-16 13:57:39 -06:00
Leonardo Merza
2d3d4db4dd centered loading for system health and logs (#2759) 2019-02-16 11:54:57 -08:00
MatthewFlamm
f127bbc64d standardize more-info-weather and add hourly/daily (#2766) 2019-02-16 11:54:14 -08:00
Ian Richardson
bdaf96b114 address review comments 2019-02-16 13:31:41 -06:00
Yosi Levy
ad55bae212 Refactor 2019-02-15 21:07:42 +02:00
Paulus Schoutsen
ea8958adae Merge pull request #2758 from home-assistant/dev
20190215.0
2019-02-15 09:57:28 -08:00
Paulus Schoutsen
e7b664a2ff Bumped version to 20190215.0 2019-02-15 09:47:46 -08:00
Paulus Schoutsen
541d1a5380 Update translations 2019-02-15 09:47:30 -08:00
Paulus Schoutsen
ac179f5b45 Unused entities to respect tap/hold action (#2754) 2019-02-15 09:46:32 -08:00
Paulus Schoutsen
34f36c6179 Update package.json 2019-02-15 08:49:48 -08:00
Ian Richardson
56c1920cc1 css is dumb 2019-02-14 23:18:21 -06:00
Ian Richardson
456880c7cf address review comments 2019-02-14 23:18:20 -06:00
Ian Richardson
08222dfbec review comments 2019-02-14 23:18:19 -06:00
Ian Richardson
e8d84e8ba5 Convert notification-button to Lit/TS and add badge 2019-02-14 23:18:18 -06:00
Paulus Schoutsen
c570ce9720 Update translations 2019-02-14 19:09:21 -08:00
Paulus Schoutsen
f8b66a78fa Fix alarm panel look (#2753) 2019-02-14 15:53:42 -08:00
Paulus Schoutsen
e2fc98526b Fix header padding for history graph card (#2748) 2019-02-14 12:34:53 -08:00
Paulus Schoutsen
856a393531 Fix tight space (#2749) 2019-02-14 12:34:45 -08:00
David F. Mulcahey
8bf2a2f8db display values as hex so that they match the zigbee spec docs (#2751) 2019-02-14 12:34:32 -08:00
Bram Kragten
3f6bbffcd6 Fix styling of raw config save button (#2752) 2019-02-14 12:22:23 -08:00
Paulus Schoutsen
4d5087bd8d Update translations 2019-02-14 12:11:17 -08:00
Paulus Schoutsen
f9663143a6 Merge pull request #2747 from home-assistant/dev
20190213.0
2019-02-13 15:13:04 -08:00
Paulus Schoutsen
c4aac72e68 Bumped version to 20190213.0 2019-02-13 15:04:51 -08:00
Paulus Schoutsen
f4048bf4ba Update translations 2019-02-13 15:04:46 -08:00
Bram Kragten
b384d17fd3 YAML editor fixes (#2737)
* YAML editor fixes

* Fix auto height in dialog

* remove height from paper-dialog-buttons

* wait for next paint instead of fixed time

* resize again after codemirror is updated

* afternextrender merge
2019-02-13 15:03:52 -08:00
Bram Kragten
2ae30ac024 Position delete/move menu better for mobile (#2738) 2019-02-13 12:32:32 -08:00
Yosi Levy
9b9b2f0710 New component files 2019-02-13 19:58:28 +00:00
Yosi Levy
5d58dfab3e New arrow and chevron next+prev components 2019-02-13 19:56:12 +00:00
Ian Richardson
38ba6058be Proper fix to alarm-control-panel-card (#2741) 2019-02-13 11:22:39 -08:00
kethoth
0f779dd7f8 Apply text color to system information text (#2739)
Apply primary-text-color to content so the system information text can be themed.  Currently text remains black, which is unreadable on dark themes.
2019-02-13 11:22:19 -08:00
Thomas Lovén
3ca842187a Convert ha-card to LitElement and TypeScript (#2701)
* Convert ha-card to LitElement and TypeScript

* CSS away the header instead

* Travis fixes

* Remove duplicate styles
2019-02-13 11:16:01 -08:00
Thomas Lovén
e36dada843 Tweak some file permissions that were odd (#2745) 2019-02-13 07:32:52 -08:00
Paulus Schoutsen
1b8c567fd7 Use mwc-button instead of paper-button (#2744)
* Convert from paper-button to mwc-button

* Fixes

* Bye paper-button

* Fixes

* Final fixes

* Fix rebase conversion
2019-02-12 23:08:29 -08:00
Paulus Schoutsen
e1c2cf770a Convert lit ts layout (#2742)
* Convert layout to TS/Lit

* Further cleanup

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Simplify error screen
2019-02-12 22:41:36 -08:00
Paulus Schoutsen
ab6cd578e8 Add lit-plugin to recommendations (#2735) 2019-02-12 13:24:00 -08:00
Paulus Schoutsen
4058a0c8d0 Merge pull request #2736 from home-assistant/dev
20190212.0
2019-02-12 12:04:48 -08:00
Paulus Schoutsen
421e5bb169 Bumped version to 20190212.0 2019-02-12 11:56:37 -08:00
Paulus Schoutsen
6faea73c9f Update translations 2019-02-12 11:56:29 -08:00
David F. Mulcahey
3a644621fe Make ZHA config panel device oriented (#2722)
* change to be zha device centric instead of entity centric

* clusters by device

* device centric API

* lit ts and cleanup

* type

* review comments and fix remove

* fix set attribute
2019-02-12 11:55:42 -08:00
Paulus Schoutsen
abbfea0b6a Person: Pick device tracker (#2726)
* Allow picking devices to track

* Tweak translation

* Update translation
2019-02-12 11:52:30 -08:00
Ian Richardson
2f2cdad16b static styles, decorators and width fix (#2727)
Not sure how the width got messed up, perhaps changes to ha-card?
2019-02-12 11:52:02 -08:00
Ian Richardson
aae3c26a64 render remote entity-row as a toggle (#2731) 2019-02-12 09:43:59 -08:00
Ian Richardson
0f680bcfd6 Fix typo in alarm editor (#2729)
* Fix typo in alarm editor

* tacking on decorators, styles and card size fix
2019-02-12 09:40:39 -08:00
Paulus Schoutsen
f71612d6cf Update translations 2019-02-11 23:40:15 -08:00
aquarium
5cc23ab084 Update Store Auth card to use primary-text-color (#2725) 2019-02-11 14:45:05 -08:00
yosilevy
9d6c0773c5 Rtl configuration fixes (#2720)
* RTL fixes to config pages

* Disconnect toast RTL

* RTL user editor - force LTR (only the user box - not the action box)

* Many RTL fixes in configuration. Keeping scrollbar in RTL so it's not obstructed. Added missing localization.

* Update disconnect-toast-mixin.ts
2019-02-11 14:40:09 -08:00
yosilevy
44dca3b86d Make yaml editor scrollabel in RTL mode (#2706)
* Make yaml editor scrollabel in RTL mode

* Refactor

* Refactor scopped CSS

* Refactor

* Fixes

* Refactor
2019-02-11 14:18:17 -08:00
Paulus Schoutsen
310b81de04 Convert HUI-IMAGE to TypeScript/Lit (#2713)
* Fix gallery demos

* Convert HUI-IMAGE to TypeScript/Lit

* Clean up
2019-02-11 14:14:29 -08:00
Paulus Schoutsen
f23258eb8c Convert state badge to TypeScript (#2712) 2019-02-09 11:55:46 -08:00
Paulus Schoutsen
039bc587cc Add decorators (#2711)
* Add decorators

* Lint
2019-02-09 10:47:39 -08:00
Paulus Schoutsen
46e1139946 Add MVP person editor (#2703)
* Add MVP person editor

* Better highlight the config.yaml people

* Add note
2019-02-09 10:41:45 -08:00
Bram Kragten
8938ad8f8d Add ctrl/cmd +s support back to editor (#2694)
* Add ctrl/cmd +s support back to editor

* Update hui-yaml-editor.ts
2019-02-07 19:33:53 -08:00
yosilevy
102cb06d28 RTL support for arrows in scrolable tabs (#2696)
* RTL support for arrows in scrolable tabs

* Refactor
2019-02-07 19:32:32 -08:00
Paulus Schoutsen
17d0ae003a Lint 2019-02-07 17:16:39 -08:00
Thomas Lovén
7a16961387 Add background and border-radius to themeable options for ha-card (#2700)
* Add background and border-radius to themeable options for ha-card

* Change variable names
2019-02-07 13:30:02 -08:00
Robert Schindler
d3bdbce0d0 Added strings for command line auth provider (#2561)
* Added strings for command line auth provider

Regards home-assistant/home-assistant#19985

* Reuse existing translation keys for new command_line auth provider
2019-02-06 16:38:31 -08:00
Paulus Schoutsen
504e4987b7 Fix event action in automation editor (#2686)
* Fix event action in automation editor

* Fix webpack resolve

* Update ha-automation-editor.js
2019-02-06 11:13:00 -08:00
Paulus Schoutsen
f00de454d1 Convert automation editor to Lit (#2687)
* Convert automation editor to Lit

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-02-06 11:01:15 -08:00
Paulus Schoutsen
ce35416284 Migrate more-info-content to UpdatingElement (#2693) 2019-02-06 11:00:17 -08:00
Paulus Schoutsen
7773589e2c Update Lit (#2692) 2019-02-06 10:59:47 -08:00
Paulus Schoutsen
5d900f9ced Split unused entities by domain (#2671) 2019-02-06 10:57:53 -08:00
Paulus Schoutsen
7a344c865f Fix gauge card gallery demo (#2688) 2019-02-05 22:13:27 -08:00
yosilevy
bd0bc2047d hui editor arrows RTL support (#2673)
* hui editor arrows RTL support

* Refactor

* Refactor

* Refactor
2019-02-05 13:05:19 -08:00
Paulus Schoutsen
2482d78a06 Optimize demo (#2681) 2019-02-05 07:28:23 -08:00
yosilevy
18fc0d0342 Added forgotten label localization (#2672) 2019-02-03 21:24:29 -08:00
Paulus Schoutsen
024ce5c379 Merge pull request #2670 from home-assistant/dev
20190203.0
2019-02-03 11:29:09 -08:00
Paulus Schoutsen
f74fe5718e Bumped version to 20190203.0 2019-02-03 11:27:23 -08:00
Paulus Schoutsen
ef395d4c9f Update translations 2019-02-03 11:27:12 -08:00
Paulus Schoutsen
5d42e4f68d Fix more info on light/thermostat pushing content (#2669) 2019-02-03 11:19:14 -08:00
Paulus Schoutsen
acce6f0b2f Fix sidebar issues (#2667) 2019-02-03 10:58:57 -08:00
Paulus Schoutsen
dadb5f92ee Fix menu button on dev-info page (#2663) 2019-02-02 22:07:02 -08:00
Paulus Schoutsen
69aff1e204 Don't include some UI elements from base bundle (#2665) 2019-02-02 22:06:53 -08:00
yosilevy
810fd802b5 Lovelace editor - flex spacing (#2666)
* Converted lovelace editor to flex spacing

* Removed margin-top leftover
2019-02-02 22:06:36 -08:00
Paulus Schoutsen
cf1b9e5067 Merge pull request #2661 from home-assistant/dev
20190202.0
2019-02-02 14:00:28 -08:00
Paulus Schoutsen
83aaf4699c Bumped version to 20190202.0 2019-02-02 13:49:31 -08:00
Paulus Schoutsen
72aa98fe5c Update translations 2019-02-02 13:49:25 -08:00
yosilevy
86b353e627 History+logbook positioning update + RTL fixes + label refactor (#2659) 2019-02-02 13:36:33 -08:00
Paulus Schoutsen
79183bb6ea Cleanups (#2658)
* Import voice dialog only when needed

* Import ha-sidebar when we have first painted the page.

* Add css on LitElement for custom cards

* Import polyfill on first update

* Cleanup of imports

* TS conversion more info mixin

* Migrate auth mixin to TS

* Lint
2019-02-02 13:23:48 -08:00
Paulus Schoutsen
4921686bdf Hash translation files (#2652)
* Hash translation files

* Fix rebuild while develop runs
2019-02-02 09:42:22 -08:00
yosilevy
a5bdf096dc Marked Arabic as RTL + added a bunch of lovelace menu entries to label files (#2650)
* Marked Arabic as RTL + added a bunch of lovelace menu entries to label files

* Refactor keys - added menus
2019-02-01 21:33:26 -08:00
Paulus Schoutsen
bfee69e7ff Merge pull request #2649 from home-assistant/dev
20190201.0
2019-02-01 12:26:33 -08:00
Paulus Schoutsen
db53d37493 Bumped version to 20190201.0 2019-02-01 12:25:39 -08:00
Paulus Schoutsen
c294124b8d Update translations 2019-02-01 12:25:27 -08:00
Paulus Schoutsen
2afc8607c6 Fix RTL issues (#2648)
* Convert home-assistant-main to Lit/TS

* different approach

* LRT RTL

* Lint

* RTL fix for generic entity row

* Remove fetching from selectedLanguage

* RTL the RTL languages in the picker

* Fix drawer adjust to RTL
2019-02-01 12:22:11 -08:00
yosilevy
e2ff51f425 RTL fixes for raw config editor and card editor -> card preview (#2532)
* RTL fixes for raw config editor and card editor -> card preview

* Fixed missing line break

* Fixed weird vscode line break problems

* Refactored to LitElement + addressed updating RTL only when needed

* Refactor

* Fixed forgotten import

* Reverted to HTMLElement + added RTL check in set hass

* Added conditional update
2019-02-01 09:53:08 -08:00
Paulus Schoutsen
25a579f7ed Fixes (#2643)
* Sort areas alphabetically in device card

* Fix background color of registry editors when using themes

* Fix area/entity reg dialog being disabled after deletion

* Better fix card background

* Warn user when system health component not loaded
2019-02-01 09:40:57 -08:00
yosilevy
ecd33fd93c RTL toast fix (#2646)
* RTL toast fix

* Removed reflectToAttribute
2019-02-01 09:40:45 -08:00
Paulus Schoutsen
960707b804 Merge pull request #2640 from home-assistant/dev
20190130.1
2019-01-30 16:48:28 -08:00
Paulus Schoutsen
4cd3b683a7 Minify images Arsaboo (#2641) 2019-01-30 16:39:32 -08:00
Paulus Schoutsen
d0b507561d Bump frontend to 20190130.1 2019-01-30 16:26:37 -08:00
Paulus Schoutsen
d8d3149558 Bumped version to 20190130.0 2019-01-30 16:19:05 -08:00
Paulus Schoutsen
41b086cd3c Update translations 2019-01-30 16:19:00 -08:00
yosilevy
6fc20450b4 Force LTR on conf validation message so errors are readable also in RTL language (#2570) 2019-01-30 16:14:56 -08:00
Paulus Schoutsen
c00930f45e Convert entity filter to TS (#2638)
* Convert entity filter to TS

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-01-30 16:14:09 -08:00
Paulus Schoutsen
77935b7c7a Convert ha-entity-toggle to Lit/TS (#2639)
* Convert ha-entity-toggle to Lit/TS

* Update src/components/entity/ha-entity-toggle.ts

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-01-30 16:10:50 -08:00
Ian Richardson
03f7a23540 panel toggle for view UI Editor (#2628) 2019-01-30 16:10:10 -08:00
Paulus Schoutsen
f1f1623d2f Add Area Registry (#2631) 2019-01-30 14:08:04 -08:00
Paulus Schoutsen
b86bfa0395 Add an empty state card (#2637)
* Add an empty state card

* Remove dev code

* Fix import
2019-01-30 14:07:55 -08:00
Paulus Schoutsen
75235ec544 Convert generic row to LitElement/TS (#2636) 2019-01-30 13:14:33 -08:00
Paulus Schoutsen
7cb2b743fa Add code editor to YAML editor (#2609)
* Add code editor to YAML editor

* Add code editor to raw config editor

* Remove hui-yaml-editor

* Update src/panels/lovelace/components/hui-code-editor.ts

Co-Authored-By: bramkragten <mail@bramkragten.nl>

* Update src/panels/lovelace/components/hui-code-editor.ts

Co-Authored-By: bramkragten <mail@bramkragten.nl>

* Rename to hui-yaml-editor

* Lint and tab

* Fix empty editor

* Lint

* Use codemirror for comment and edit detection + some styling

* Add save action (ctrl+s/cmd+s) to card editor

* Move save to the instance

* Delete save for now

* Remove yaml-change event on init
2019-01-30 13:03:17 -08:00
Paulus Schoutsen
175693ba4e Allow editting entity registry (#2630)
* Allow editting entity registry

* Slight simplify

* Style fixes

* Correctly set submitting

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Fix invalid type

* Add config section to entity registry

* Trim

* Fix trimming
2019-01-30 13:02:41 -08:00
Bram Kragten
c7d1417f48 Remove yaml-change event on init 2019-01-30 21:09:38 +01:00
Bram Kragten
db92abad66 Delete save for now 2019-01-30 20:59:49 +01:00
David F. Mulcahey
e42e59871e Use demo icons instead of mdi (#2623)
* generate demo icons

* replace tab icons and update build file

* review comments

* review comments

* update ignores

* cleanup
2019-01-30 11:42:09 -08:00
Ian Richardson
f97b5c48d0 more-info for thermostat-card (#2598)
* more-info for thermostat-card

* soften icon
2019-01-30 11:35:41 -08:00
Paulus Schoutsen
f22510fd74 Add system health card (#2626) 2019-01-30 11:00:25 -08:00
Bram Kragten
e789380126 Move save to the instance 2019-01-30 20:00:13 +01:00
Bram Kragten
9086051608 Fix icon view demo jimpower (#2634) 2019-01-30 10:54:03 -08:00
Ian Richardson
a0f0d49f45 more-info icon for light-card (#2600)
* more-info icon for light-card

* soften icon
2019-01-30 10:02:12 -08:00
Thomas Lovén
bc87e05e2d Fix weird spaces in jimpowers demo (#2622) 2019-01-30 09:57:47 -08:00
Malte Franken
b0958f589b Support for geolocation trigger (#2617)
* initial working version of geolocation trigger

* removed unused code

* removed unused code and imports

* sources now localisable

* fixed source picker to not immediately show save button after loading automation

* labels

* removed unused code

* removed unused import

* transformed source dropdown to simple edit field
2019-01-30 09:56:39 -08:00
Bram Kragten
b37eee56c0 Move views (#2610)
* A start, still buggy...

* Tests and move with view

* Lint
2019-01-30 09:55:44 -08:00
Bram Kragten
2ad27f7400 Fix thermostat with radius 0 (#2633)
* Fix thermostat with radius 0

* remove afterNextRender
2019-01-30 09:19:49 -08:00
Bram Kragten
95e9d6164d Add save action (ctrl+s/cmd+s) to card editor 2019-01-30 12:50:57 +01:00
Bram Kragten
43bc9abb46 Use codemirror for comment and edit detection + some styling 2019-01-30 12:24:13 +01:00
Paulus Schoutsen
ab816ad529 Add system health card 2019-01-29 16:32:34 -08:00
Paulus Schoutsen
c964ea30e0 Refactor dev-info page (#2624)
* Refactor dev-info page

* What

* Fix custom UI check

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments

* TSC

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* TSC
2019-01-29 15:34:49 -08:00
Tommy Jonsson
73b500db64 html5 notifications add VAPID support (#2560)
* html5 notifications add VAPID support

* fix travis error

* replace httpapi with websocketapi
2019-01-29 14:49:41 -08:00
Bram Kragten
633fc1372f Lint 2019-01-29 18:46:40 +01:00
Bram Kragten
dedb36cecf Fix empty editor 2019-01-29 18:03:34 +01:00
Bram Kragten
13aa0568a6 Lint and tab 2019-01-29 17:59:42 +01:00
Paulus Schoutsen
a090b291aa Fix entity names in notification (#2612) 2019-01-28 19:36:11 -08:00
David F. Mulcahey
30ab056aa4 add help text for reconfigure node (#2616) 2019-01-28 19:33:22 -08:00
Paulus Schoutsen
5a797a6dec Fix localize lite mixin types (#2613) 2019-01-28 15:43:08 -08:00
Bram Kragten
d76ffd343e Rename to hui-yaml-editor 2019-01-28 20:41:09 +01:00
Paulus Schoutsen
20ecfffb9c Update src/panels/lovelace/components/hui-code-editor.ts
Co-Authored-By: bramkragten <mail@bramkragten.nl>
2019-01-28 19:30:51 +01:00
Paulus Schoutsen
d2bfd5ce62 Update src/panels/lovelace/components/hui-code-editor.ts
Co-Authored-By: bramkragten <mail@bramkragten.nl>
2019-01-28 19:30:23 +01:00
Zadkiel
0cdb96f917 Fix Google Assistant skill link (#2608) 2019-01-28 10:01:50 -08:00
yosilevy
fd4ede39ba RTL fix for obstructed notification drawer (#2584) 2019-01-28 09:57:58 -08:00
Paulus Schoutsen
fa3889b549 Fix call to localize in mixin 2019-01-28 09:29:45 -08:00
Paulus Schoutsen
d71d5aa855 Convert ha-sidebar to TS/Lit (#2605) 2019-01-28 09:27:16 -08:00
Bram Kragten
644af4d009 Remove hui-yaml-editor 2019-01-28 17:07:02 +01:00
Bram Kragten
9f4ae5d932 Add code editor to raw config editor 2019-01-28 16:35:55 +01:00
Bram Kragten
7a8c9d7c12 Add code editor to YAML editor 2019-01-28 16:03:21 +01:00
Paulus Schoutsen
89630a5c7f Convert ha-sidebar to TS/Lit 2019-01-27 23:23:07 -08:00
Paulus Schoutsen
13adee09da Fix demo routing (#2599) 2019-01-27 16:55:47 -08:00
Paulus Schoutsen
c3f473c3e7 Remove Lit localize mixin (#2597)
* Remove some localize mixins form Lit Elements

* Remove litLocalizeMixin

* Revert unwanted changes
2019-01-27 16:52:15 -08:00
Paulus Schoutsen
0a09eabce3 Simplify localize (#2593)
* Simplify localize

* Delete unused file
2019-01-27 15:19:59 -08:00
Bram Kragten
3e1c22edcd Revert ""skip" is confusing for a lot of users (#2589)" (#2595)
* Revert ""skip" is confusing for a lot of users (#2589)"

This reverts commit ccb12996f8.

* And the agreed name
2019-01-27 22:37:03 +01:00
Ian Richardson
ccb12996f8 "skip" is confusing for a lot of users (#2589)
Hopefully this will clear up the ambiguity for users.
2019-01-27 20:58:13 +01:00
Paulus Schoutsen
d6887758a9 Convert <home-assistant> to Lit/TS (#2586)
* Convert home-assistant element to Lit/TS

* Fix disconnect toast

* Lint
2019-01-27 10:41:35 -08:00
Paulus Schoutsen
9299d548ba Convert common dir to TS (#2580)
* Convert common dir to TS

* Lint

* Update setup-leaflet-map.ts
2019-01-27 10:40:46 -08:00
Alec Rust
7dda98f139 Improve "Full Log" button on Dev Info panel (#2590) 2019-01-27 10:14:38 -08:00
Paulus Schoutsen
6b8e90ce67 Convert ha-init-page to lit/ts (#2583) 2019-01-26 22:51:07 -08:00
Paulus Schoutsen
c20fae289c Update fecha (#2579) 2019-01-26 20:24:24 -08:00
Paulus Schoutsen
8db111c2fb Update lint tools (#2576)
* Update lint

* Prettier Hass.io

* Update prettier
2019-01-26 19:34:07 -08:00
Paulus Schoutsen
5a6d537d43 Generalize minifier (#2577) 2019-01-26 18:55:32 -08:00
Paulus Schoutsen
1ffeace8f9 Upgrade build tools (#2575)
* Upgrade webpack

* Upgrade babel

* Upgrade build tools

* Add missing dependency
2019-01-26 15:05:01 -08:00
Paulus Schoutsen
7bf8ea9d0a Upgrade MDI/svg (#2573)
* Upgrade MDI/svg

* Changed icon names
2019-01-26 15:04:33 -08:00
Paulus Schoutsen
85e900bf68 Update marked to 0.6.0 (#2574) 2019-01-26 15:04:21 -08:00
Paulus Schoutsen
6f9b7a1f60 Update lit-element to rc5 (#2572) 2019-01-26 15:02:50 -08:00
Bram Kragten
cad4fa408e it was right... (#2564) 2019-01-25 17:33:36 -08:00
Bram Kragten
dc334844ed add history-graph to generated mode (#2563) 2019-01-25 08:53:38 -08:00
Bram Kragten
4e86cf01b8 Add group to domains that can be toggled (#2555)
* Add group to domains that can be toggled

* Group should call homeassistant.turn_on/turn_off

* entity id is not a attribute

* Oops...
2019-01-25 07:39:33 -08:00
Paulus Schoutsen
2bfd7ff33b Use columns in edit card on wide screens (#2551) 2019-01-24 12:33:09 -08:00
Adrian Campos
b1d5517864 Fixed typo: "unsafed" -> "unsaved" (#2556) 2019-01-24 11:57:39 -08:00
David F. Mulcahey
334c4fe90f static styles (#2533) 2019-01-23 19:47:20 -08:00
Paulus Schoutsen
77f6016701 Merge pull request #2553 from home-assistant/dev
Some more demo fixes
2019-01-23 16:36:12 -08:00
Paulus Schoutsen
a2816800e8 Merge pull request #2552 from home-assistant/demo-fixess
Demo fixess
2019-01-23 16:35:37 -08:00
Paulus Schoutsen
e3d32c9dd0 Dont' jump media player on initial load 2019-01-23 16:05:36 -08:00
Paulus Schoutsen
37b2154638 Allow demo config to be tested from other device on network 2019-01-23 15:52:07 -08:00
Paulus Schoutsen
28d3f445f6 Align theme color 2019-01-23 15:51:56 -08:00
Bram Kragten
45e50ea948 correct patio cam (#2550) 2019-01-23 13:06:19 -08:00
Paulus Schoutsen
f3eaba4b23 Merge pull request #2548 from home-assistant/dev
Fix action editor (#2547)
2019-01-23 12:45:20 -08:00
Bram Kragten
96f7f842cd Fix action editor (#2547) 2019-01-23 12:39:58 -08:00
Paulus Schoutsen
bc6debc6c9 Merge pull request #2546 from home-assistant/dev
Update demo
2019-01-23 12:10:20 -08:00
Paulus Schoutsen
a9df5ea6a9 Do not show new service worker toast (#2545) 2019-01-23 12:09:45 -08:00
Paulus Schoutsen
c972d039bc Merge pull request #2544 from home-assistant/dev
Hopefully this will work (#2543)
2019-01-23 11:24:00 -08:00
Paulus Schoutsen
d130471a99 Fix ars padding 2019-01-23 11:22:30 -08:00
Paulus Schoutsen
52e31648bf Update git attr 2019-01-23 11:06:24 -08:00
Bram Kragten
40d12fa870 Hopefully this will work (#2543) 2019-01-23 19:56:29 +01:00
Paulus Schoutsen
d5728579e0 Merge pull request #2542 from home-assistant/dev
Demo update
2019-01-23 10:36:22 -08:00
Paulus Schoutsen
257ff7707b Fix app skeleton in demo color 2019-01-23 10:34:57 -08:00
Paulus Schoutsen
b8851a7f3e Add SW, GA, Fav Icon (#2541)
* Add SW, GA, Fav Icon

* Add skeleton"
2019-01-23 10:26:26 -08:00
Bram Kragten
a4680feb92 Add view and camera (#2540) 2019-01-23 10:26:19 -08:00
Paulus Schoutsen
ca02080cf1 Add missing style (#2538) 2019-01-23 07:40:02 -08:00
kernehed
08824b5796 Update entities.ts (#2537)
removed password and changed the domain name
2019-01-23 07:21:10 -08:00
Paulus Schoutsen
99ded45bb0 Merge pull request #2535 from home-assistant/dev
Demo update
2019-01-22 15:01:01 -08:00
Bram Kragten
bc8cc32445 Add Arsaboo demo (#2534)
* Add Arsaboo demo

* Resize images

* Fixes

* Mock more things

* Simplify
2019-01-22 14:59:56 -08:00
Paulus Schoutsen
5cc75c294e Fix names in demo Isa 2019-01-22 12:58:29 -08:00
Bram Kragten
035e6752eb Add lit-html plugin to vs code recommendations (#2531) 2019-01-22 08:02:06 -08:00
Paulus Schoutsen
c1913799f2 Merge pull request #2530 from home-assistant/dev
20190121.1
2019-01-21 21:19:44 -08:00
Paulus Schoutsen
ceb86df0fa Bumped version to 20190121.1 2019-01-21 21:19:27 -08:00
Paulus Schoutsen
24b0eb8ce4 More demo stubs (#2529)
* More demo stubs

* History stub actually generates mocks

* More tweaks

* Add more entities
2019-01-21 21:18:01 -08:00
Paulus Schoutsen
547f829f5b Fix panels with subpaths (#2528) 2019-01-21 21:16:34 -08:00
Paulus Schoutsen
16c9303ae9 Merge pull request #2527 from home-assistant/dev
20190121.0
2019-01-21 09:19:12 -08:00
Paulus Schoutsen
6d329bdd1f Bumped version to 20190121.0 2019-01-21 09:18:41 -08:00
Paulus Schoutsen
1c6f7d32cf Update translations 2019-01-21 09:18:36 -08:00
Bram Kragten
9a86b06092 No idea, but it seems to work? (#2526) 2019-01-21 09:17:51 -08:00
Paulus Schoutsen
0e1eaa18df Convert Panel Resolver to Lit/TS (#2520)
* TS Panel Resolver

* Clean ups
2019-01-21 00:24:20 -08:00
Paulus Schoutsen
ad98534195 Add plant status card (#2521) 2019-01-21 00:23:58 -08:00
Paulus Schoutsen
b261e779e5 More tweaks (#2519)
* More tweaks

* Update webpack.config.js
2019-01-20 23:57:43 -08:00
Paulus Schoutsen
f9e97c0577 Merge branch 'master' into dev 2019-01-20 20:19:22 -08:00
Paulus Schoutsen
5276db5d23 Add themes to demos (#2518) 2019-01-20 20:19:01 -08:00
Paulus Schoutsen
6bf954ccb2 Merge pull request #2517 from home-assistant/dev
20190120.0
2019-01-20 16:20:37 -08:00
Paulus Schoutsen
26dbef8d4c Bumped version to 20190120.0 2019-01-20 16:19:40 -08:00
Paulus Schoutsen
1d1e85e1d7 Update translations 2019-01-20 16:19:37 -08:00
Bram Kragten
755a3d5cf1 Edit dialogs for mobile (#2513)
* Edit dialogs for mobile

* unused
2019-01-20 16:18:00 -08:00
Bram Kragten
e9c5011a6d Remove ids from demo configs (#2515) 2019-01-20 16:16:29 -08:00
Paulus Schoutsen
871ee33229 Add teachingbirds demo (#2516)
* Add teachingbirds demo

* Remove some custom cards

* Lint
2019-01-20 16:15:53 -08:00
Paulus Schoutsen
3b66d58f91 Fix demo translations (#2511)
* Fix demo translations

* Comment out some more panels

* Fix reference
2019-01-20 11:24:39 -08:00
kernehed
69c10256ef Update entities.ts (#2510)
Forgot one translation.. Fixed now.
2019-01-20 10:38:15 -08:00
Bram Kragten
480b92c960 Make edit-dialog look ok on mobile (#2501)
* Make edit-dialog look ok on mobile

* Wide on wide screen

* Remove apply

* Remove variable, as it only used in one place...
2019-01-20 10:01:49 -08:00
kernehed
6098b433be Update entities.ts (#2508)
* Update entities.ts

Did some translations and change a few friendly names.

* Update entities.ts
2019-01-20 10:00:57 -08:00
kernehed
d91bf4c2a9 Update lovelace.ts (#2509)
Did some translations
2019-01-20 10:00:27 -08:00
Paulus Schoutsen
bad9369ce6 Update WC polyfills (#2505) 2019-01-20 09:59:59 -08:00
Paulus Schoutsen
3ba9189612 Upgrade Lit Element to RC3 (#2504) 2019-01-18 21:24:51 -08:00
Paulus Schoutsen
bb71fe0bec Add demo (#2502)
* Add demo

* Fix stuff

* Lint

* Typescript and demo card

* More fixes

* Allow switching through configs

* Lint

* Lint2

* Add two demo configs

* Lint

* Lint
2019-01-18 21:24:32 -08:00
Tontze
65359aabe3 Update demo-hui-entity-button-card.ts (#2503)
Entity button change to correct format
2019-01-18 09:52:46 -08:00
yosilevy
233b646917 RTL fix for precipitation (#2495) 2019-01-17 11:07:46 -08:00
Bram Kragten
3263d84def Deep clone config (#2496) 2019-01-17 11:07:05 -08:00
Franck Nijhof
faee6a7163 🎨 Optmizes image assets (#2499) 2019-01-17 11:06:29 -08:00
Paulus Schoutsen
00ad91af9a Merge pull request #2493 from home-assistant/dev
20190116.0
2019-01-16 16:13:01 -08:00
Paulus Schoutsen
4081fea5f2 Merge remote-tracking branch 'origin/master' into dev 2019-01-16 16:11:15 -08:00
Paulus Schoutsen
97f7da198c Bumped version to 20190116.0 2019-01-16 16:10:15 -08:00
Paulus Schoutsen
f6be8153bb Update translations 2019-01-16 16:10:09 -08:00
Paulus Schoutsen
d67e035198 Position thermostat correctly (#2492) 2019-01-16 16:09:29 -08:00
Thomas Lovén
f7a67af71b Put geo_events on a map instead of an entities card. (#2489) 2019-01-16 14:01:49 -08:00
Thomas Lovén
41554ab14d Ignore weblinks that don't exist when converting groups to lovelace config (#2488)
* Ignore weblinks that don't exist when converting groups to lovelace config

* Simplify
2019-01-16 13:59:58 -08:00
Bram Kragten
1b2e052f05 Activate edit mode after taking control (#2486)
* Activate edit mode after taking control

* Move to take-control
2019-01-16 13:57:54 -08:00
Paulus Schoutsen
427f0f5e66 Update translations 2019-01-15 15:34:34 -08:00
Paulus Schoutsen
86502c5cd8 Bumped version to 20190115.0 2019-01-15 15:32:51 -08:00
Bram Kragten
edf7485578 Fix getCardSize iFrame (#2487) 2019-01-15 15:16:37 -08:00
Bram Kragten
01c5b64c63 Climate entity row for water-heater (#2485)
* Add entity row climate for water-heater

* Update create-row-element.ts
2019-01-15 14:17:33 -08:00
Adam Mills
690188b4a3 Split time_pattern triggers from time trigger (#2413)
* Split interval triggers from time trigger

* Default smaller interval units to zero

* Rename interval to schedule

* Rename schedule trigger to time_pattern
2019-01-15 09:33:46 -08:00
yosilevy
42e60beb0d paper-slider RTL fix (#2476)
* paper-slider RTL fix

* CSS enclosed in ``

* Removed attr reflection and fixed style (forgot RTL reference)
2019-01-15 09:32:23 -08:00
Thomas Lovén
0ddc82601a Fix ll-rebuild only keeps the card that should be deleted (#2481)
* Fix ll-rebuild only keeps the card that should be deleted

* Do the same thing for stack cards. (Untested. Leeeeroyyyyy Jenkins)

* Copy then replace instead of mutating

* Use map
2019-01-15 09:30:33 -08:00
Paulus Schoutsen
f943366ecd Honor group control hidden setting (#2478)
* Honor group control hidden setting

* Lint
2019-01-14 19:33:16 -08:00
Paulus Schoutsen
732237d4e1 Use static get styles to embed ha-style (#2479)
* Use static get styles

* Fix errors
2019-01-14 19:32:57 -08:00
Paulus Schoutsen
d8d77d0238 Convert label badge to use static get styles (#2480) 2019-01-14 19:32:33 -08:00
Tommy Jonsson
f98fff9ffd Skip opening url if an action was called (#2475) 2019-01-14 10:53:44 -08:00
Paulus Schoutsen
9565b5490b Update translations 2019-01-14 09:31:25 -08:00
Odin Hørthe Omdal
8b19ea8e87 Be specific on Danish-Norwegian translation name (#2468)
* Be specific on Danish-Norwegian translation name

* Update translationMetadata.json

* Alphabet
2019-01-14 09:31:06 -08:00
Paulus Schoutsen
2e6d79a60f Use right constant for alarm panel (#2471) 2019-01-14 07:46:09 -08:00
Paulus Schoutsen
07f624fd1c Used wrong config key and TS didn't raise (#2472) 2019-01-13 23:52:37 -08:00
Bram Kragten
3408392aea Style edit card button (#2466)
* Change style of edit card button

* remove margin 0
2019-01-13 14:53:33 -08:00
Bram Kragten
864f2619a2 Rebuild card instead of entire stack (#2467) 2019-01-13 14:49:11 -08:00
Paulus Schoutsen
bd2c57169b Bumped version to 20190113.0 2019-01-13 09:37:17 -08:00
Paulus Schoutsen
8f1c75c57b Update translations 2019-01-13 09:37:11 -08:00
Paulus Schoutsen
1c86fbd52c Set preferred panel right away (#2465) 2019-01-13 09:31:33 -08:00
Bram Kragten
937a939907 Make Lovelace default (#2414)
* Set Lovelace as default

* Remove template

* Make link follow OPT_IN_PANEL
2019-01-13 09:30:25 -08:00
Paulus Schoutsen
7173b16ef3 Fix long press directive (#2464) 2019-01-13 09:15:09 -08:00
Bram Kragten
d738f6e2f6 Rebuild just the card instead of entire view (#2452)
* Rebuild just the card instead of entire view

* Only rebuild card, not view
2019-01-12 23:34:03 -08:00
Paulus Schoutsen
b0d32b5674 upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Paulus Schoutsen
0f53b7c832 migrate long press to paper ripple (#2457)
* migrate long press to paper ripple

* Add comment
2019-01-12 15:46:59 -08:00
Bram Kragten
668d4e82ba Fix gauge (#2456) 2019-01-12 14:44:34 -08:00
David F. Mulcahey
963bdcc53c address outstanding items (#2454) 2019-01-12 14:38:26 -08:00
Tommy Jonsson
d34dada9d8 Allow push notifications to suggest its device name (#2446)
* Allow push notifications to suggest its device name

* Lint
2019-01-11 20:35:10 -08:00
yosilevy
5ae599b1b2 RTL support for history timeline (#2444)
* RTL support in history timeline

* RTL support in history timeline
2019-01-11 14:53:23 -08:00
Bram Kragten
ebbd308be6 Thermostat: check if we are attached before getting clientWidth (#2447)
* We need to be attached to get the cleintWidth

* Use isConnected and set _loaded
2019-01-11 12:09:53 -08:00
David F. Mulcahey
6d43c9e86a Expand ZHA configuration panel (#2421)
* node panel

* cleanup

* add entities

* entities split into own element

* cleanup

* add clusters

* cleanup and attributes and commands

* start cluster attributes

* finish cluster attribute interaction

* cluster command panel

* scope cleanup

* fix parseInt

* guards and template cleanup

* cleanup

* cleanup

* fix missing button

* type info

* make names consistent

* cleanup - review comments

* split out fetch attributes command - review comment

* move _computeReadAttributeServiceData - review comment

* move readAttributeValue to zha.ts - review comment

* move fetchCommandsForCluster - review comment

* move fetchClustersForZhaNode - review comment

* move fetchEntitiesForZhaNode - review comment

* style changes - review comment

* cleanup - review comments

* fully sort imports

* use updated vs update - review comment

* remove unnecessary ids - review comment

* remove empty attributes - review comment

* fix read attribute value - review comment

* switch reconfigure to web socket command - review comment
2019-01-11 12:07:58 -08:00
Paulus Schoutsen
339a0f70e3 Bumped version to 20190109.1 2019-01-11 11:47:27 -08:00
Paulus Schoutsen
94df67a7cb Correctly wrap weblink entities (#2440) 2019-01-11 11:46:44 -08:00
yosilevy
1d4f74cda3 Force dev panels to LTR even in RTL language to make it usable. Same for logbook. (#2432) 2019-01-11 11:46:44 -08:00
Ian Richardson
07a4505f1e 🛠️ add resources to lovelace struct (#2439)
* 🛠️ add `resources` to lovelace struct

`resources` are being removed by Raw Config Editor on save

* make resources optional

* Prevent removal of extra keys
2019-01-11 11:46:44 -08:00
Paulus Schoutsen
e96c9daad6 Correctly wrap weblink entities (#2440) 2019-01-10 16:21:26 -08:00
yosilevy
08f3496818 Force dev panels to LTR even in RTL language to make it usable. Same for logbook. (#2432) 2019-01-10 15:39:41 -08:00
Tommy Jonsson
326931277e Add dismiss functionality to html5 notifications. (#2435)
* Add dismiss function to notifications.

* fix let -> const
2019-01-10 13:46:53 -08:00
Ian Richardson
a2ef8bbe70 🛠️ add resources to lovelace struct (#2439)
* 🛠️ add `resources` to lovelace struct

`resources` are being removed by Raw Config Editor on save

* make resources optional

* Prevent removal of extra keys
2019-01-10 13:33:34 -08:00
Paulus Schoutsen
4bcb51bf5a Merge branch 'master' into dev 2019-01-09 15:29:09 -08:00
Paulus Schoutsen
bda5c3a0c9 Fix version bump 2019-01-09 15:29:01 -08:00
Paulus Schoutsen
e228f60c39 Version bump to 20190109.0 2019-01-09 15:13:52 -08:00
Paulus Schoutsen
67c032c85a Merge pull request #2429 from home-assistant/dev
2019109.0
2019-01-09 14:39:11 -08:00
Paulus Schoutsen
417ffde3e8 Update translations 2019-01-09 14:37:32 -08:00
Paulus Schoutsen
f3064f0071 Bumped version to 2019109.0 2019-01-09 14:36:55 -08:00
Bram Kragten
e9d912cc87 Remove styleMap for base-unit (#2428) 2019-01-09 14:04:49 -08:00
yosilevy
2517e5ba60 Proper RTL support in weather forecast card (#2424)
* Proper RTL support in weather forecast card

* States panel force left to right since RTL is not usable

* Updated class names and switched div to span
2019-01-09 21:34:24 +01:00
Bram Kragten
64b405dd4d Set min height to thermostat card (#2416)
* Set min height

* Set min height on #root

* Add min-height on firstUpdated and remove after roundSlider is loaded

* Move back to #thermostat
2019-01-08 11:27:01 -08:00
Bram Kragten
ddb050d1fd Change title to name (#2425) 2019-01-08 08:18:44 -06:00
hulkhaugen
3f6a8cac80 Removed excessive bracket in css (#2411)
* Removed excessive bracket in css code

* lint
2019-01-07 10:40:12 +01:00
Bram Kragten
ad113367e6 🛠️ Small fixes to sensor editor (#2415)
* Small fixes to sensor editor

* any -> string | number
2019-01-06 20:06:59 -06:00
David F. Mulcahey
f4f08ab0d1 Config panel for ZHA (#2389)
* zha config panel

* implement issue cluster command

* update layout

* read zigbee attribute service

* set attribute and manufacturer code override

* cleanup

* adjust style and documentation wording

* html cleanup

* ha-call-ws-api-button

* use call-ws-api-button

* fix deprecated syntax - travis error

* emulate new z-wave node info functionality

* start converting to lit

* fix style includes

* fix help toggle

* remove old panel

* cleanup

* cleanup

* convert to lit / ts

* import styles

* types - review comment
2019-01-04 19:11:08 -06:00
John Arild Berentsen
c2a57099d3 Allow for removal of broadcast node in UI (#2390)
* allow for removal of broadcast

* prettier

* prettier
2019-01-03 23:31:30 +01:00
Emil Stjerneman
adf0c6d891 Lovelace alarm panel respects the code_format attribute on the alarm entity (#2379) 2019-01-03 23:09:07 +01:00
Milan V
38a2627227 Fix climate control rounding error (#2375)
* Fix climate rounding error

* Update ha-climate-control.js
2019-01-03 23:07:37 +01:00
Ian Richardson
5a90edc893 thermostat card: follow same step logic as more-info (#2369)
* Follow same step logic as more-info

* Address review comments

* Address review comments

* Address review comments and cleanup
2019-01-03 22:53:55 +01:00
Ian Richardson
88473581c2 UI Editor for entity-button card (#2393) 2019-01-03 22:53:10 +01:00
Bram Kragten
88d23eb9dd Check config on save (#2346)
* Check config on save

Untested...

* views is list of objects, resources not required

* Lint

* Only warn on "# " to prevent warnings on colors

Could miss some comments...

* Improve # check

Warn on # at the start of a line or when followed by white space

* Faster

* Multiline

* Check if # is added

* Also handle paste and just show the warning on every #
2019-01-03 22:46:57 +01:00
Andrey
25c788871f Allow empty name (#2388) 2019-01-03 22:46:14 +01:00
Xus Badia
f272801253 Update favicon-apple-180x180.png (#2385) 2018-12-28 18:22:40 +01:00
Ian Richardson
2e750dc1e2 UI Editor for map card (#2287)
*  UI Editor for `map` card

* Address review comments

* Revert change properly

* Address review comments

* Note to change to interface after LL conversion

* Remove config options if empty

Should apply to other editors

* entitites is required

* cleanup

* cleanup

* Fix for number values

* Name chunk

* Remove zoom default
2018-12-21 13:53:26 +01:00
Paulus Schoutsen
3c5fb6d1ad Update translations 2018-12-19 14:43:12 +01:00
Paulus Schoutsen
32cd683b8a Bumped version to 20181219.0 2018-12-19 14:42:39 +01:00
Paulus Schoutsen
6c029b39e0 Merge branch 'master' into dev 2018-12-19 14:03:44 +01:00
Paulus Schoutsen
7efad04e42 Merge pull request #2367 from home-assistant/20181211-2
20181211.2
2018-12-19 14:02:48 +01:00
Paulus Schoutsen
b6f7781a87 Bumped version to 20181211.2 2018-12-19 13:59:16 +01:00
Paulus Schoutsen
16a147f389 Fix incorrect state display being cached (#2356)
* Fix incorrect state display being cached

* Remove test for cache
2018-12-19 13:59:10 +01:00
Zack Arnett
79b71ed753 Update UI and Add Move Card to a Dialogue (#2282)
* Update UI

* REmove useless import

* Add Notification if saved is done

* Move Register Dialog

* Updates from suggestions

* Updates box shadow on card options

* Update color and viewselection

* Add pointer

* Update Cursor

* Update check next to save

* Comment Updates

* Text area
2018-12-19 13:08:17 +01:00
Paulus Schoutsen
49fa74cc07 Fix incorrect state display being cached (#2356)
* Fix incorrect state display being cached

* Remove test for cache
2018-12-19 13:05:39 +01:00
Ian Richardson
0a2eaec884 Cleanup of picture card editor (#2364)
* Cleanup of `picture` card editor

* Fix `action-editor`
2018-12-18 20:40:51 +01:00
Ian Richardson
4c5d3138c1 UI Editor for picture card (#2240)
* UI Editor for `picture` card

This is a WIP.
* How should I handle service data? It's kind of freeform and I don't really have a good idea on what I should do.
* in action-editor I have two issues for `_navigation_path` and `_service` have TS errors saying the property doesn't exist on `ToggleActionConfig`. Not sure why that is the only type it is looking at. Should I be checking the type somewhere?

* Remove `id`

* Cleanup. Service-data still WIP

* Could use some help on service_data

* Perhaps a better/more structured method?

* Revert "Perhaps a better/more structured method?"

This reverts commit 1e1a1e44c16a18c5ffc380347cffd01e7fad52f9.

* Just playing around

* MVP doesn't include service data

* Address review comments

* Address review comments

* Name chunk and remove when unused

* Remove `more-info` action option

* Address review comments
2018-12-18 17:25:56 +01:00
Paulus Schoutsen
5e1cd389b3 Name all chunks (#2363) 2018-12-18 17:14:33 +01:00
Ian Richardson
7ced08a899 UI Editor for weather-forecast card (#2285)
*  UI Editor for `weather-forecast` card

* Missed name

* Fix typo

* Address review comments

* Remove unused optional configs with no defaults

* cleanup

* Name chunk
2018-12-18 14:26:34 +01:00
Malte Franken
603cf7ba0f two new geo location map demo cards (#2349) 2018-12-18 11:29:12 +01:00
Ian Richardson
c47ba65c3b 🧹 remove unused configs when empty (#2347)
* Remove unused configs when empty

* Handle unused numbers & fix glance entities

* Sneak in the chunk names
2018-12-18 11:15:32 +01:00
Ian Richardson
849ed80e78 🚫 render error-entity-row when state not available (#2352) 2018-12-18 11:14:55 +01:00
quthla
b78c48ecec Fix android external auth (#2319)
* Fix android external auth

* Update external_auth.ts

* Update external_auth.ts

* Update external_auth.ts
2018-12-17 20:37:10 +01:00
Paulus Schoutsen
8d2da9c5a6 Merge branch 'master' into dev 2018-12-17 10:51:19 +01:00
Ian Richardson
9664e8258c UI Editor for plant-status card (#2286)
*  UI Editor for `plant-status` card

* Address review comments

* Require entity

* Cleanup

* Cleanup

* Address review comments

* Update hui-plant-status-card-editor.ts
2018-12-17 10:45:23 +01:00
Paulus Schoutsen
5f5bf17df0 Merge pull request #2345 from home-assistant/20181211-1
20181211 1
2018-12-17 10:20:35 +01:00
Paulus Schoutsen
ca7674cd15 Bumped version to 20181211.1 2018-12-17 10:17:32 +01:00
Paulus Schoutsen
3f5f5bb1ee Fix service button element (#2343) 2018-12-17 10:17:18 +01:00
Paulus Schoutsen
e7ee9c7054 Fix undefined on plant/weather card (#2339) 2018-12-17 10:17:18 +01:00
Ian Richardson
4f6ecf5c21 🔨 Fix for element positioning (#2335)
* Fix for element positioning

* Address comments
2018-12-17 10:17:17 +01:00
Zack Arnett
87eac4cdee remove Animation for thermostat and light (#2303)
* Update Animation

* Update light
2018-12-17 10:17:16 +01:00
Paulus Schoutsen
d267196bff Call super updated (#2293) 2018-12-17 10:16:50 +01:00
Paulus Schoutsen
f683337cbe Fix opening edit dialog twice when closed by clicking on overlay (#2290) 2018-12-17 10:13:19 +01:00
Paulus Schoutsen
1a6226270f Fix setting aspect ratio in percentage (#2289)
* Fix setting aspect ratio in percentage

* Use endsWith

* Fix invalid test
2018-12-17 10:13:19 +01:00
Paulus Schoutsen
64714c64c7 Fix notifications drawer (#2344) 2018-12-17 10:08:23 +01:00
Ian Richardson
b7c34c483a 🔨 Fix for element positioning (#2335)
* Fix for element positioning

* Address comments
2018-12-17 10:07:59 +01:00
Paulus Schoutsen
e5bf842801 Fix service button element (#2343) 2018-12-17 09:36:55 +01:00
Ian Richardson
d1a56d6acc UI Editor for media-control card (#2336)
*  UI Editor for `media-control` card

* Address review comments

* Note on LL interface
2018-12-17 09:31:58 +01:00
Malte Franken
cac7f8d1ab Extended map to support geo location entities (#2337)
* initial version of geo location map

* configuring entities not required but source is

* extending existing map instead of adding a new one

* renamed source to geo_location_source; clearer handling of geo location entities vs defined entities

* geo location sources must now be an array

* code cleanup
2018-12-17 09:04:58 +01:00
Ian Richardson
9d2b37c9f2 Remove unnecessary editor types (#2342) 2018-12-17 07:50:27 +01:00
Paulus Schoutsen
e20a02c52c Fix undefined on plant/weather card (#2339) 2018-12-16 13:52:13 -05:00
Zack Arnett
c46d04eaa6 Alarm Card Conversion (#2259)
* Alarm Card COnversion

* Map buttons

* Reducing margin under alarm code

* Update src/panels/lovelace/cards/hui-alarm-panel-card.ts

Co-Authored-By: zsarnett <arnett.zackary@gmail.com>

* Comment Updates

* Review updates

* Reorder css

* Update actions

* TSlint

* TS LINT

* Idk whats going on here

* Fix import
2018-12-14 11:16:43 +01:00
Zack Arnett
2ec8b97378 remove Animation for thermostat and light (#2303)
* Update Animation

* Update light
2018-12-13 21:45:21 -05:00
Paulus Schoutsen
b3b9ca9c3f Fix setting aspect ratio in percentage (#2289)
* Fix setting aspect ratio in percentage

* Use endsWith

* Fix invalid test
2018-12-13 23:36:01 +01:00
Paulus Schoutsen
71ed83ef07 Fix opening edit dialog twice when closed by clicking on overlay (#2290) 2018-12-13 21:46:57 +01:00
Paulus Schoutsen
47635055d0 Clear view cache edit mode (#2291)
* Clear view cache when canceling edit mode

* Fix enabling edit mode on not first view
2018-12-13 21:46:50 +01:00
Paulus Schoutsen
0dfca2f33b Call super updated (#2293) 2018-12-13 09:26:23 -05:00
Ian Richardson
18de427145 🧹 domain-filter as attribute as it does not change (#2271)
* 🔨 `domain-filter` as attribute as it does not change

* Address review comments
2018-12-13 09:40:57 +01:00
Bram Kragten
118f28285e 📷 Add camera card on generate (#2279) 2018-12-12 08:00:00 -06:00
Paulus Schoutsen
6a9cfbfa1c TS create element functions (#2276)
* TS create element functions

* Name chunk
2018-12-12 14:21:34 +01:00
Bram Kragten
8c61624a9c Change edit mode + add edit lovelace (#2277)
* Change edit mode + add edit lovelace

* Comments

* Fix (yes it was used :-)

* Raw edit header changed
2018-12-12 13:59:19 +01:00
Paulus Schoutsen
d277571735 Generalize errors (#2275) 2018-12-12 09:47:32 +01:00
Paulus Schoutsen
a6f3684846 Fix gauge (#2274) 2018-12-12 09:29:46 +01:00
Paulus Schoutsen
edef4ba2f5 Speed things up (#2270)
* Speed things up

* Fixes
2018-12-12 08:51:59 +01:00
Matthias Dötsch
7cd6619a79 Added some missing translate tags for cards (#2188)
* Added some missing translate tags for cards

more-info of:
 - sun
 - script
 - updater

* Added some missing translate tags for cards

* Added some missing translate tags for cards
2018-12-12 08:27:56 +01:00
Ian Richardson
2059e36dd6 🔨 Update value attributes to properties (#2269) 2018-12-12 08:12:57 +01:00
Ian Richardson
4a455e9147 🔧 Organize editor imports (#2272) 2018-12-12 08:09:23 +01:00
Ian Richardson
fe0b131480 UI Editor for iframe card (#2230)
* UI Editor for `iframe` card

* Remove `id`

* Address review comments

* Cleaned up some inconsistencies
2018-12-11 17:05:01 -06:00
Paulus Schoutsen
b1b78c2bb7 Fix stack trace in badge 2018-12-11 21:43:43 +01:00
Paulus Schoutsen
99395360c7 Convert HA-STATE-LABEL-BADGE to lit (#2268) 2018-12-11 21:41:38 +01:00
Ian Richardson
bd46e3b8e0 UI Editor for sensor card (#2267) 2018-12-11 21:39:18 +01:00
Paulus Schoutsen
80dd15306e Convert ha-label-badge to lit (#2266)
* Convert ha-label-badge to lit

* Add class to TypeScript map
2018-12-11 21:23:19 +01:00
Ian Richardson
88f0ebf75d UI editor for shopping-list card (#2227)
* Add UI editor for `shopping-list` card

* Cleanup

* Export config

* Remove `id`
2018-12-11 21:23:10 +01:00
Ian Richardson
8679f10f10 UI Editor for light card (#2232)
* UI Editor for `light` card

* Remove `id`
2018-12-11 21:22:21 +01:00
Ian Richardson
db4c1e45f5 UI Editor for gauge card (#2229)
* UI editor for `gauge` card

Need to develop a severity input method still

* Config works well but no preview showing

* Add `sensor` domain filter

* Remove `id`
2018-12-11 21:22:08 +01:00
Paulus Schoutsen
65cf2feb7a UI Editor for markdown card (#2231)
* UI Editor for `markdown` card

* Remove `id`
2018-12-11 21:21:38 +01:00
Ian Richardson
97da26eba7 UI Editor for alarm-panel card (#2257)
* UI Editor for `alarm-panel` card

* Adding of states

Can't get the last available state to be recognized as being a selection change

* Ability to remove states

* Clean up

* Clean up

* Remove id
2018-12-11 21:15:29 +01:00
Ian Richardson
8e7d7c5188 UI Editor for thermostat card (#2258) 2018-12-11 21:15:18 +01:00
Paulus Schoutsen
767307ef47 Convert hui-view to Lit (#2265)
* Convert hui-view to Lit

* Add super call to updated

* Update src/panels/lovelace/hui-view.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments"

* Fix things
2018-12-11 19:47:19 +01:00
Paulus Schoutsen
ccc6262026 Convert HUI-ROOT to Lit Element (#2264)
* Convert HUI-ROOT to Lit Element

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments
2018-12-11 19:39:40 +01:00
Bram Kragten
2cdb542112 Add move card to view (#2262)
* Add move card to view

* Fix style

* Fix style and tests

* last style change

* update tests
2018-12-11 19:38:57 +01:00
Paulus Schoutsen
4e232e58ce Address comments 2018-12-11 19:26:26 +01:00
Ian Richardson
27bb175624 Apply suggestions from code review
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:05:01 +01:00
Ian Richardson
5a5a7dad1e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:58 +01:00
Ian Richardson
2d1cf421ef Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:48 +01:00
Ian Richardson
8be25f2020 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:33 +01:00
Ian Richardson
0a8f853a8e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:01 +01:00
Ian Richardson
a46f5e3d4e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:44 +01:00
Ian Richardson
5de36f9579 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:32 +01:00
Ian Richardson
9b5e79f42a Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:18 +01:00
Ian Richardson
a824599a37 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:07 +01:00
Ian Richardson
884b24da0e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:01:32 +01:00
Ian Richardson
76325a384c Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:00:57 +01:00
Paulus Schoutsen
e2218f1e6e Extract component for editing out of hui-view (#2263) 2018-12-11 17:17:59 +01:00
Paulus Schoutsen
758b686684 Convert HUI-ROOT to Lit Element 2018-12-11 17:06:05 +01:00
Paulus Schoutsen
3a50d47dd2 Merge pull request #2261 from home-assistant/dev
20181211.0
2018-12-11 10:29:13 +01:00
Paulus Schoutsen
b4d4591273 Bumped version to 20181211.0 2018-12-11 10:28:16 +01:00
Paulus Schoutsen
432fdd628c Update translations 2018-12-11 10:28:12 +01:00
Paulus Schoutsen
bc23dd37be Handle webhook component not loaded (#2255)
* Handle webhook component not loaded

* Fix text
2018-12-11 10:25:16 +01:00
Ian Richardson
0319fd23c5 Remove id 2018-12-10 23:13:26 -06:00
Ian Richardson
d7e5993501 UI Editor for markdown card 2018-12-10 23:12:22 -06:00
Paulus Schoutsen
46a9b90ed0 Add webhook trigger to automation editor (#2252) 2018-12-10 19:45:48 +01:00
Bram Kragten
b0c68e58c5 Small fixes (#2248)
* Small fixes

* remove returning on undefined in statename

* 16px -> 4px

* Styling
2018-12-10 19:44:34 +01:00
Paulus Schoutsen
7063ced7fd Merge pull request #2247 from home-assistant/dev
20181210.1
2018-12-10 12:49:26 +01:00
Paulus Schoutsen
7d2444868d Bumped version to 20181210.1 2018-12-10 12:48:37 +01:00
Paulus Schoutsen
0899d42967 Add raw config editor for storage mode (#2246)
* Add raw config editor for storage mode

* Lint

* Allow inserting spaces by pressing tab
2018-12-10 12:48:05 +01:00
Bram Kragten
d57bcc2701 Disable edit in yaml mode (#2244) 2018-12-10 11:40:34 +01:00
Paulus Schoutsen
d9d92c8766 Simplify Lovelace mode (#2243) 2018-12-10 11:38:18 +01:00
Paulus Schoutsen
7a16ed5400 Merge pull request #2242 from home-assistant/dev
20181210.0
2018-12-10 09:51:55 +01:00
Paulus Schoutsen
07e35ff81a Update translations 2018-12-10 09:50:25 +01:00
Paulus Schoutsen
0398944cab Bumped version to 20181210.0 2018-12-10 09:49:42 +01:00
Paulus Schoutsen
a33ff7479a Allow moving cards (#2241) 2018-12-10 09:48:59 +01:00
Paulus Schoutsen
f9182e5453 Revert lovelace as default (#2237)
* Revert lovelace as default

* Better text
2018-12-10 08:57:51 +01:00
Bram Kragten
4f0a965573 Changes for new storage (#2228)
* Changes for new storage

* Fix lint

* Use indexes for editing

* Use lovelace object

* Use lovelace object

* Lit conversion panel lovelace

* Lovelace obj

* Fix edit cards

* Fix some bugs

* Fix last bugs

* Lint

* Don't drop view content

* Move file

* Add skip button to card picker

* Correctly set lovelace mode
2018-12-10 08:57:29 +01:00
Paulus Schoutsen
2a23487163 Fix long press in FF (#2226)
* Fix long press in FF

* Better fix
2018-12-09 10:09:34 +01:00
Ian Richardson
6b9ba7367d Remove alarm-panel UI editor (#2235)
Remove the editor that I inadvertidently committed to dev so that we can give it a proper review before merging.
2018-12-09 10:09:10 +01:00
Paulus Schoutsen
a17ae5546f Lint 2018-12-08 10:54:00 +01:00
Ian Richardson
47de0e9156 UI Editor for alarm-panel card
Still need to get states sorted out
2018-12-07 22:54:18 -06:00
Bram Kragten
baeda622de Save columns as string (#2214)
* save columns as string

* set type to number to convert to number before save
2018-12-07 14:14:29 +01:00
Bram Kragten
48220b67ed Fix edit view and layout (#2213)
* Fix edit view and layout

* Colors
2018-12-07 13:20:24 +01:00
Ian Richardson
9ba232249b grammer tweaks (#2209) 2018-12-07 11:44:55 +01:00
Bram Kragten
b0580e70d2 Fix horizontal stack (#2210) 2018-12-07 11:43:49 +01:00
Paulus Schoutsen
6c5b274792 Merge branch 'dev' 2018-12-07 07:11:43 +01:00
Paulus Schoutsen
3094b08c5f Bumped version to 20181207.0 2018-12-07 07:11:30 +01:00
Paulus Schoutsen
181539baac Merge pull request #2208 from home-assistant/dev
20181207.0
2018-12-07 07:10:32 +01:00
Bram Kragten
2289773e36 Force refresh on manual refresh (#2200) 2018-12-07 07:09:13 +01:00
Thomas Lovén
1ecb138ec5 Better display of sensor values. E.g. with units. (#2205) 2018-12-07 07:05:15 +01:00
Ian Richardson
3d67d9eba3 Update gallery demos (#2206)
* Update gallery demos

* Update demo-hui-glance-card.ts
2018-12-07 07:04:02 +01:00
Zack Arnett
0fd3c03764 UI Design Update (#2207) 2018-12-07 07:02:17 +01:00
Zack Arnett
6aca1d0d54 fix (#2204) 2018-12-06 20:22:16 +01:00
Zack Arnett
601bbfd88e Light Tap/Hold Action fix (#2191)
* Light action fix

* oops copy pasta
2018-12-06 19:17:41 +01:00
Zack Arnett
f600b0522c Add id = 0 handling (#2201)
* Add id = 0 handling

* Add check in view creation
2018-12-06 19:16:06 +01:00
Ian Richardson
647a33ea61 Fix picture-element card elements (#2202) 2018-12-06 19:15:03 +01:00
Paulus Schoutsen
64d59fedc8 Fix Lovelace weather card (#2199) 2018-12-06 17:59:36 +01:00
Bram Kragten
51d592ba0d Fix no or just 1 view (#2194) 2018-12-06 14:38:16 +01:00
Paulus Schoutsen
eaaf841a87 Code split edit dialog (#2198)
* Code split edit dialog

* Code split edit view dialog
2018-12-06 14:12:00 +01:00
Paulus Schoutsen
c6542e383c Code split jQuery roundslider (#2197) 2018-12-06 14:10:37 +01:00
Paulus Schoutsen
6e3c2bfd6a Code split Leaflet (#2196) 2018-12-06 13:30:05 +01:00
Paulus Schoutsen
be3bfc7aa4 Add script to show stats (#2195) 2018-12-06 12:43:43 +01:00
Bram Kragten
bbe90c1683 Fix view without badges (#2192) 2018-12-06 11:49:33 +01:00
Ian Richardson
2fe1d04eb0 Action tooltips (#2193)
* Fix tooltips for tap actions and add hold actions

* Cleanup logic
2018-12-06 11:49:19 +01:00
Paulus Schoutsen
f5022f4e1e Merge pull request #2190 from home-assistant/dev
20181205.0
2018-12-05 22:40:18 +01:00
Paulus Schoutsen
fdbb06de19 Merge remote-tracking branch 'origin/master' into dev 2018-12-05 22:08:30 +01:00
Paulus Schoutsen
0cd4980f44 Bumped version to 20181205.0 2018-12-05 22:07:41 +01:00
Paulus Schoutsen
2d0f14d078 Update translations 2018-12-05 22:07:34 +01:00
Thomas Lovén
9711068f8b Handle mouse events on touchscreens. Fix #2085 (#2170)
* Handle mouse events on touchscreens. Fix #2085

* Some more fixes. Makes listeners non-passive!

* Only prevent preventable events.

* Different approach

* Some travis fixes

* Try to avoid clicking while scrolling
2018-12-05 22:05:51 +01:00
Ian Richardson
fb180c7b9b Align picture card tap/hold actions (#2186)
Also removed unneccessary `navigation_path` config from `picture-entity`
2018-12-05 22:00:52 +01:00
Ian Richardson
5947bd6d74 Align picture-glance card tap/hold actions (#2187)
Removed unneccessary `force_dialog` config.
Updated `handleClick` to use `entity` or `camera_image` for `more-info` dialog
2018-12-05 22:00:04 +01:00
Paulus Schoutsen
7e584402ea Add gallery demo for Long Press directive (#2189)
* Convert gallery to TS

* Add long press demo
2018-12-05 20:32:36 +01:00
Bram Kragten
3f113da056 Fix: View should have cards (#2184)
* View should have cards

* Don't need CardConfig yet
2018-12-05 17:25:43 +01:00
Bram Kragten
bfef3a96c8 Catch errors in preview and fix entity picker (#2183)
* Catch errors in preview and fix entity picker

* Replace add button with entity-picker
2018-12-05 16:42:22 +01:00
Zack Arnett
de3a467697 Update Hold/Tap Actions to Objects (#2182)
* Update Action to Object for entity-button

* Update Actions to Object for Glance Card

* Update to use HandleClick function

* Add navigation

* Updating to use navigation path from Action Config

* Type handle events in glance

* Update Service checks

* Update Picture elements

* oops

* Adding nav back until we convert picture

* Extend typing
2018-12-05 14:27:22 +01:00
Bram Kragten
0f895fd3a1 Make Lovelace the default! (#2181)
* Make Lovelace the default!

* Move states panel to panels
2018-12-05 14:14:53 +01:00
Bram Kragten
16cc3adcff Add badges to view editor (#2176)
* Badges

* Fix entity picker

* Make editor own element
2018-12-05 12:39:04 +01:00
Zack Arnett
e2e002b9a9 Fixes Color not being overwritten by themes for cards (#2179) 2018-12-05 12:31:54 +01:00
Zack Arnett
8274284294 Theme Addition (#2178) 2018-12-04 19:49:46 +01:00
Bram Kragten
1d7f574b9b Fix process entity (#2177) 2018-12-04 12:43:03 -05:00
Bram Kragten
f680832f78 Add edit/add/delete view (#2172)
* Add edit/add/delete view

* Add delete

* Comments

* Lint

* Fix delete with numeric ids

* fix translations

* add translations
2018-12-04 16:49:12 +01:00
Ian Richardson
77711ea711 Stop MouseEvent from reach parent element (#2174) 2018-12-04 12:57:43 +01:00
Ian Richardson
f1a6122699 Convert hui-unused-entities to TypeScript/LitElement (#2173) 2018-12-04 12:57:15 +01:00
Ian Richardson
5fec881c39 Convert hui-picture-entity-card to TypeScript/LitElement (#2168)
* Convert hui-picture-entity-card to TypeScript/LitElement

click/hold are not working on my Chrome dev env

* typo

* Address review comments

Still having issues with clicks/holds on lots of cards on my system

* Add explicit navigate option

* Fixed after testing with touchevents

* Simplify
2018-12-04 10:04:59 +01:00
Ian Richardson
5dc05129ef Convert process-config-entities to TypeScript (#2113)
* Convert process-config-entities to TypeScript

* Address review comments but have issues

* Resolve merge conflicts

* Address review comments

Still a typing error which seems like it shouldn't exist

* Hack to bypass type assertion
2018-12-04 10:01:13 +01:00
Bram Kragten
f461ad6d31 Add card functionality (#2160)
* MVP add card

* WIP

* Added stub config

* Little bit of cleanup

* Add all card

* At least it works now...

* clean up and bug fixes

* Fix for switching editor
2018-12-03 14:11:46 +01:00
Ronen Hayun
57b5db4f43 Move computeRTL to a separate file and add RTL support in state-info (#2165)
* RTL support (POC)

* restore yarn.lock

* Move computeRTL to a separate file and add RTL support in state-info

* Move import to top after failed CI

* Replace var to const

* Change HassEntity to HomeAssistant object

* Support RTL in state info and state card display

* Support for RTL in more-info-controls:

* Update src/common/util/compute_rtl.ts

Co-Authored-By: rhayun <ronen.hayun@gmail.com>

* remove default from export

* prefix all computeRTL with underscroe for privately uses
2018-12-03 10:54:29 +01:00
Ian Richardson
d015fe5160 Remove .ts extensions (#2169) 2018-12-02 20:35:05 -06:00
Otto Winter
f7e3f4a828 Hass.io: Show ANSI color codes in logs (#2155)
* Hass.io: Show ANSI color codes in logs

* Use innerHTML and color classes

* Refactor ANSI function

* Readability

* Make green text black in supervisor logs

* Use assigning while loop
2018-12-02 10:26:32 +01:00
Aephir
f3b8d66f4f Update demo-hui-glance-card.js (#2157)
* Update demo-hui-glance-card.js

Fixed updated syntax

* Update gallery/src/demos/demo-hui-glance-card.js

Co-Authored-By: Aephir <waldenb@gmail.com>
2018-12-01 09:41:52 +01:00
Zack Arnett
8ae03dd1ff Convert Sensor Card to Typescript (#2140)
* Sensor Convert

* Types

* Forgot to check stateobj

* Review updates

* lint

* Update for hass and add error handling

* Review Updates

* Graph only shown if graph: line - Breaking Change

* Only rendering when updated

* Date.Now()

* Forgot to reset the date

* Lint

* Review updates

* Forgot to take this out

* Bram the god

* Update to render right things

* Check if line is being drawn

* Make graph if's more readable
2018-11-30 22:50:21 -05:00
Bram Kragten
0e6f6ddbda Add own types + add config validation to glances (#2150)
* Add own types + add config validation to glances

* Cleanup
2018-11-30 13:35:55 -05:00
Ian Richardson
882c503fa9 Extract Supported features into own funciton (#2151)
* External function to check if entity supports a feature

* Typo

* Update hass-media-player-model.js
2018-11-30 16:37:44 +01:00
Paulus Schoutsen
22eb6c6a8d Remove special char 2018-11-30 16:24:13 +01:00
Ian Richardson
8e9ff46bab Extract media-player constants to src/data (#2149) 2018-11-30 14:17:52 +01:00
Paulus Schoutsen
023d8ad893 Upgrade deps (#2156)
* Update TypeScript

* Update webcomponentsjs and shadycss

* Upgrade vaadin
2018-11-30 13:45:50 +01:00
Ian Richardson
6b730b7c40 Allow for state_image and camera_image in picture-elements card (#2143)
* Allow for state_image and camera_image in picture-elements card

* Address review comments

* Remove unneccesary div
2018-11-29 16:44:39 +01:00
Bram Kragten
90cea56a1e Check if config is compatible with UI editor (#2137)
* Check config on loading UI editor

* Clean up

* Add theme and reload editor on reopen

* Reload config element on card type change

* Clean

* Clean

* Add superstruct for config validation

* Take content logic out off return edit-card

* Reverse  logic to prevent unnecessary yaml load
2018-11-29 15:00:30 +01:00
Ian Richardson
5e43d9b6b7 Convert hui-media-player-entity-row to TypeScript/LitElement (#2136)
* Convert hui-media-player-entity-row to TypeScript/LitElement

* Add types

* Address review comments
2018-11-29 11:57:29 +01:00
Ian Richardson
e4cac86690 Convert shopping-list clear to WebSockets (#2141) 2018-11-29 11:53:30 +01:00
Jan Castermans
a249289211 Display alert entity row as a toggle (#2138)
* Update create-row-element.js

In the default UI alerts where displayed as toggles, this change makes this also the default behaviour in Lovelace

* Change the order to keep the alphabetic order
2018-11-29 11:53:04 +01:00
Ian Richardson
8ecfd9780f Convert hui-entities-toggle to TypeScript/LitElement (#2144)
* Convert hui-entities-toggle to TypeScript/LitElement

* Assign types to _callService
2018-11-29 11:52:22 +01:00
Paulus Schoutsen
913cd2b3d4 Automatically detect plants (#2146) 2018-11-29 11:24:30 +01:00
Ian Richardson
c02b7a33fe Resolve warning (#2142) 2018-11-28 21:59:14 -05:00
Bram Kragten
7a0b2060d4 Add delete card func (#2116)
* Add delete card button

* Add delete card button

* fix the non-sense

* lovelace data was moved
2018-11-28 12:34:53 +01:00
Ian Richardson
afe9056725 Combine edit and complete shopping-list calls (#2135) 2018-11-28 10:14:45 +01:00
Zack Arnett
49be2ad013 Unit PAtch (#2134) 2018-11-27 20:49:22 -06:00
Zack Arnett
230ec51de5 Fixes: #2084 : Fix for extra padding (#2133)
* Fix for extra padding

* Easy fix
2018-11-27 21:35:41 +01:00
Zack Arnett
b37ea482d3 Add name variable - Weather Card (#2131)
* Add name variable

* Update to state name
2018-11-27 15:06:51 -05:00
Zack Arnett
bf69c8ce46 Title to Name (#2127) 2018-11-27 20:30:22 +01:00
Zack Arnett
d2741af24b Add name to config (#2128) 2018-11-27 20:26:56 +01:00
Zack Arnett
f04f58ac88 Change Title to Name (#2129) 2018-11-27 20:25:52 +01:00
Zack Arnett
8757dbb664 Plant add name (#2130) 2018-11-27 20:22:53 +01:00
Zack Arnett
ffc7f9706d Update Aspect Ratio on Map card (#2126)
* Update Aspect Ratio

* Update Card Size
2018-11-27 11:48:41 -05:00
Zack Arnett
4487c3dc1a Removes Height, Light Width and Line Color from Sensor (#2122)
* Sensor fix

* SVG prettified - Use Accent Color only - Dont Calc height

* Prettier
2018-11-27 17:17:59 +01:00
Bram Kragten
97f5d8e7e2 Move lovelace data to /src/data/lovelace.ts (#2119)
* move lovelace data

* move types

* change imports from cards
2018-11-27 10:05:33 +01:00
cdce8p
1cc6e09953 Add html to LitElement.prototype (#2120) 2018-11-26 23:27:00 +01:00
Zack Arnett
3752530f96 Update UI in the config Elements (#2117)
* UpdateUI

* Updating continues

* Update name of file
2018-11-26 21:01:07 +01:00
Ian Richardson
21be35bc46 Conert shopping-list update to WebSockets (#2114) 2018-11-26 14:46:40 +01:00
Paulus Schoutsen
bb8ec4b2ef Bumped version to 20181126.0 2018-11-26 14:39:06 +01:00
Paulus Schoutsen
278ea184cc Update translations 2018-11-26 14:39:01 +01:00
Paulus Schoutsen
0b17a85c3b Bumped version to 20181121.1 2018-11-26 14:11:11 +01:00
Paulus Schoutsen
0be0e9792f Convert authorize page to lit (#2115)
* Convert authorize page to lit

* Don't use ha-markdown

* Simplify CSS
2018-11-26 14:11:02 +01:00
Paulus Schoutsen
14409ff5b7 Use overrideIcon via data binding (#2078) 2018-11-26 14:11:01 +01:00
Bram Kragten
d24bc3c07c Dont change config on init (#2044)
* dont change config on init

* set default title empty

* used firstUpdated instead of updated

* prevent double events

* check if val changed

* typing

* clean

* lint

* clean

* prettier is having a fight
2018-11-26 14:11:00 +01:00
Paulus Schoutsen
5ab419534c Convert authorize page to lit (#2115)
* Convert authorize page to lit

* Don't use ha-markdown

* Simplify CSS
2018-11-26 14:10:01 +01:00
Paulus Schoutsen
07b65f37db Add Cloud Webhook management (#2102)
* Add Cloud Webhook support

* Lint

* Tweak text

* Rename it to cloudhook

* Fix final type

* fix type

* Catch null
2018-11-26 14:09:27 +01:00
Paulus Schoutsen
8ad5280501 Document types in fireEvent (#2108)
* Document types in fireEvent

* Fix more types for fireEvent

* Adjust new code to new fireEvent
2018-11-25 20:47:29 +01:00
Bram Kragten
69df6179bb Add dialog to save config (#2100)
* Add dialog to save config

* Change types

* Helper funcs for register dialog

* Clean up

* Migrate config after save

* Clean up

* Unused imports

* Comments

* Missed half...

* cardConfig cant be undefined
2018-11-25 20:09:32 +01:00
Paulus Schoutsen
b939ae6ab4 Fix wrong import (#2106) 2018-11-25 15:18:41 +01:00
Bram Kragten
101a364a83 Type LovelaceConfig -> LovelaceCardConfig (#2103)
* LovelaceConfig -> LovelaceCardConfig

* Typo
2018-11-24 14:03:54 +01:00
Paulus Schoutsen
412b7595d2 Handle non existing states (#2098) 2018-11-23 20:42:41 +01:00
Paulus Schoutsen
a7ab652dd3 Add support for timestamp device class (#2087) 2018-11-23 19:38:28 +01:00
Paulus Schoutsen
d41a4cf78b Generate Lovelace config on the fly (#2091)
* Generate Lovelace config on the fly

* Disable editing

* Fix domain name title rendering
2018-11-23 17:39:50 +01:00
Simon Holzmayer
785ed6f9db add "for" input field to numeric_state in trigger editor (#2081) 2018-11-23 11:52:48 +01:00
Ian Richardson
6885abd234 Convert shopping-list add item call to websockets (#2080) 2018-11-23 08:56:35 +01:00
Ian Richardson
3497cb892e Convert toggle functions to TypeScript (#2082)
* Convert toggle functions to TypeScript

* Update hui-picture-glance-card.ts

* Update hui-picture-glance-card.ts
2018-11-22 12:48:12 +01:00
Bram Kragten
a82561355c Dont change config on init (#2044)
* dont change config on init

* set default title empty

* used firstUpdated instead of updated

* prevent double events

* check if val changed

* typing

* clean

* lint

* clean

* prettier is having a fight
2018-11-21 22:15:22 -05:00
Paulus Schoutsen
f054cdc9ef Use overrideIcon via data binding (#2078) 2018-11-21 21:11:00 +01:00
Paulus Schoutsen
463c7eae54 Merge pull request #2077 from home-assistant/dev
20181121.0
2018-11-21 20:14:51 +01:00
Paulus Schoutsen
cbb703e5c1 Bumped version to 20181121.0 2018-11-21 20:04:19 +01:00
Paulus Schoutsen
e4dc1884f8 Update translations 2018-11-21 20:04:10 +01:00
Paulus Schoutsen
f72a2b7ef8 Merge remote-tracking branch 'origin/master' into dev 2018-11-21 20:02:56 +01:00
Bram Kragten
39819c5c58 Hassio: Fix download snapshot (#2071)
* Fix download snapshot

* async + helper

* pretty

* move catch

* fix

* Update data.ts
2018-11-21 19:28:48 +01:00
Zack Arnett
49542c49fa Entities Card UI Editor (#2072)
* Entity Card ui + extras

* Travis Fix

* Bram already has this in  another PR
2018-11-21 09:29:06 +01:00
Ian Richardson
86e501f0aa Convert retrieval of items in shopping-list to websockets (#2041)
* Convert shopping-list to websockets

* Update shopping-list.ts

* Scale back to just retrieval of items to WS
2018-11-21 09:25:30 +01:00
Paulus Schoutsen
2ca3a784e2 Allow Google unlocking locks (#2073)
* Allow Google unlocking locks

* Fix missing type
2018-11-20 23:23:12 +01:00
Paulus Schoutsen
c01bd57ba5 Fix compression hassio build 2018-11-20 17:07:26 +01:00
Paulus Schoutsen
ba5d224080 Gen MDI icons during hassio build 2018-11-20 16:16:54 +01:00
Ronen Hayun
5da16db81b RTL support (POC) (#2014)
* RTL support (POC)

* restore yarn.lock
2018-11-20 13:10:40 +01:00
Ian Richardson
a9704b110d Convert hui-input-select-entity-row to TypeScript/LitElement (#2048)
* Convert hui-input-select-entity-row to TypeScript/LitElement

* Address Travis issues

* Address review comments

* Return callService promise

* Remove _selected
2018-11-20 13:09:52 +01:00
Ian Richardson
b8f048d96a Convert hui-input-text-entity-row to TypeScript/LitElement (#2050)
* Convert hui-input-text-entity-row to TypeScript/LitElement

* Address review comments

* Address review comments

Does anyone know why line 74 seemingly doesn't fire when the value hasn't changed? I think we should blur regardless if the value changed or not on "enter" but only seems to work when setValue is called

* Return promise from call service
2018-11-20 13:09:45 +01:00
Paulus Schoutsen
c20a285003 Pin Lit-HTML and Lit-Element (#2070) 2018-11-20 13:01:21 +01:00
Karl Kihlström
07cf1141c5 Improve sensor graph algorithm (#2069) 2018-11-20 12:41:47 +01:00
Zack Arnett
ef2aa2ea6f Picture Glance Conversion to TS (#2029)
* First Commit

* Convert to TS

* Extract entity render to own function

* Making it one function like not an idiot

* Addressing Reviews
2018-11-20 12:24:30 +01:00
Pascal Vizeli
2058e0d3fb Fix gz build 2018-11-20 11:36:45 +01:00
Bram Kragten
773711a2d5 Update Hassio with security options (#2067)
* new security options

* Add more info modal

Added more info modal and moved the security components.

* fixes

* show apparmor only if not default

* add colors to apparmor
2018-11-20 10:14:46 +01:00
Bram Kragten
0bb85bc895 Added migrate dialog when card has no ID (#2008)
* Added migrate dialog when card has no ID

* typos

* Fix error messages

* cardId should be a string

* Add translation

* Only load yaml in yaml editor

* revert name change

* Combine migrate and edit in one dialog

* lint

* fixes + inlude and secret yaml

* resize after toggle preview -> value>config

* add loading spinners

* only create preview when type changes

* loader on yaml editor

* Fixed loading spinner not disappearing

* moved dialog

* disable toggle if not avail

* address comments

* cleanup showDialog
2018-11-19 22:19:50 +01:00
Petro31
9a9986cf17 Flatline fix for Sensor Cards (#2064)
* Update hui-sensor-card.js

This fixes issues where the first history item was repeated many times at the start of the graph resulting in a flat line that does not represent the data.

Also, the graph now has the ability to reach a 1 to 1 history graph to sensor graph point representation.  Before 2 to 1 was the highest resolution possible.  This was due to using history.length - 1 as the denominator in cases where the user set the accuracy larger than the total number of points in the history.

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js
2018-11-19 16:47:30 +01:00
Jack Wilsdon
1bb62bfc05 Only add a separating colon if there is a valid prefix and suffix (#2060)
This commit changes the media player entity row to only add a colon
separator to the status line when there is both a prefix and a suffix.
2018-11-19 11:59:10 +01:00
Ian Richardson
f92f89e8e8 Convert compute functions to TypeScript (#2055)
* Convert compute functions to TypeScript

* Address review comment

* Address Travis complaint

* Attempt to not be dumb :)
2018-11-18 14:50:21 +01:00
Paulus Schoutsen
b1a50aa0e0 Fix hassio develop script 2018-11-18 12:25:16 +01:00
Jack Wilsdon
8c2a2fc043 Remove extra > (#2062) 2018-11-17 12:08:52 -05:00
callifo
adb39fd820 Update Lovelace Thermostat Card to include all supported thermostat m… (#2039)
* Update Lovelace Thermostat Card to include all supported thermostat modes

* Update hui-thermostat-card.ts

* Update en.json to include

* Update en.json

* Revert "Update en.json"

This reverts commit a71ed49b78.

* Revert "Update en.json to include"

This reverts commit 68b95ca456.

* Removed manual mode, covered in PR #2036

* Update dry colour to #efbd07
2018-11-14 10:16:53 -05:00
TomMini
8a9762dd93 Add icon for manual mode (#2036)
* Add icon for manual mode

* Added state.climate.manual to translations

* Added manual color blue
2018-11-13 22:32:50 -05:00
Paulus Schoutsen
4407da9364 Remove extra > 2018-11-13 17:04:15 +01:00
Paulus Schoutsen
b533e4d093 Bumped version to 20181112.0 2018-11-12 10:17:51 +01:00
Ian Richardson
239ec5fb53 Ability to add items to shopping-list-card (#2035)
* Ability to add items to shopping-list-card

* Address review comments
2018-11-12 10:17:19 +01:00
Thomas Lovén
d974d5dc52 Fix hold_action not working on chrome for android (#2011) 2018-11-12 10:17:18 +01:00
Zack Arnett
2076949289 Glance fix (#2040) 2018-11-12 08:05:05 +01:00
Paulus Schoutsen
65bd7fd64f Update translations 2018-11-11 22:54:04 +01:00
Paulus Schoutsen
1f0c7297ce Upgrade Lit (#2032) 2018-11-10 20:36:25 +01:00
Ian Richardson
efbd97f9a4 Add clearing of checked items to shopping-list-card (#2034) 2018-11-10 20:34:31 +01:00
Paulus Schoutsen
2ccfccc23f Bumped version to 20181103.3 2018-11-09 15:39:07 +01:00
Paulus Schoutsen
acbcb6bd45 Fix int in ha-form (#2033) 2018-11-09 15:38:56 +01:00
Paulus Schoutsen
e580dbe7f2 Fix int in ha-form (#2033) 2018-11-09 15:38:30 +01:00
Nikolay Vasilchuk
9f55678cb3 Timezone support for displaying header with date in logbook (#2026)
* Fixed display header with date in logbook

* prettier fix
2018-11-09 10:59:03 +01:00
Ian Richardson
9c2b85dd6e Add checked item section to shopping-list-card (#2005)
* Add checked item section to shopping-list-card

* Not getting value back from `this.localize`? at line 109

* Alignment of label

* Address review comment

* Address review comments

* Address review comment and fix Travis errors

* Address review comments

* Hide checked label when empty

* Address review comment
2018-11-09 10:13:44 +01:00
Ian Richardson
cb640c2e71 Convert hui-picture-card to TypeScript/LitElement (#2030) 2018-11-09 10:10:17 +01:00
Paulus Schoutsen
56bdb6e352 Fix fetching sub 2018-11-08 19:32:58 +01:00
Paulus Schoutsen
81e1e5be8f Fix link color in persistent notification (#2023) 2018-11-08 10:31:49 -05:00
Ian Richardson
6c44a92e2c Convert hui-group-entity-row to TypeScript/LitElement (#2015)
* Convert hui-group-entity-row to TypeScript/LitElement

* Address review comment and Travis errors
2018-11-08 09:41:46 +01:00
Ian Richardson
9596f737e8 Convert hui-text-entity-row to TypeScript/LitElement (#2017)
* Convert hui-text-entity-row to TypeScript/LitElement

* Address review comments

* Fix Travis errors
2018-11-08 09:41:25 +01:00
Ian Richardson
ad5f815273 Convert hui-scene-entity-row to TypeScript/LitElement (#2021)
* Convert hui-scene-entity-row to TypeScript/LitElement

script-entity-row and this could probably extend a common base class. The only thing that differs them is the domain used in the callService and the button text.

* Stop more-info
2018-11-08 09:39:02 +01:00
Ian Richardson
4a893d96a0 Convert hui-script-entity-row to TypeScript/LitElement (#2020)
* Convert hui-script-entity-row to TypeScript/LitElement

* Stop more-info
2018-11-08 09:37:22 +01:00
Ian Richardson
59a681fcb7 Convert hui-lock-entity-row to TypeScript/LitElement (#2022) 2018-11-08 09:35:55 +01:00
Paulus Schoutsen
787ea885cc Add text color to error row (#2007)
Fixes #2002
2018-11-07 11:37:04 -05:00
Paulus Schoutsen
a26a37233b Use non-forked version of fecha 2018-11-07 10:48:49 +01:00
Paulus Schoutsen
c1e3259b08 Bumped version to 20181107.0 2018-11-07 10:31:22 +01:00
Paulus Schoutsen
9c735bb088 Merge branch 'master' into dev 2018-11-07 10:28:10 +01:00
Paulus Schoutsen
10092dcadf Bumped version to 2018117.0 2018-11-07 10:27:07 +01:00
Paulus Schoutsen
d31cea70bc Update translations 2018-11-07 10:26:19 +01:00
Paulus Schoutsen
b04ab6faa1 Bumped version to 20181103.2 2018-11-07 10:11:47 +01:00
Ian Richardson
23163b3095 Fix iframe aspect_ratio (#2004) 2018-11-07 10:11:35 +01:00
Thomas Lovén
849d7d2d95 Make conditional not take up space in stacks when hidden (#1999)
* Make conditional not take up space in stacks when hidden

* Update hui-conditional-card.ts
2018-11-07 10:11:35 +01:00
Paulus Schoutsen
a58a324073 Format html (#2006)
* Upgrade prettier

* Format files with prettier
2018-11-07 09:56:43 +01:00
Ian Richardson
7c2135f444 Fix iframe aspect_ratio (#2004) 2018-11-07 09:42:46 +01:00
Ian Richardson
f9719957b0 Convert call-service to TypeScript (#1985)
* Convert call-service to TypeScript

* Address Travis error

* Address review comments
2018-11-07 09:31:01 +01:00
Ian Richardson
9ce74e2da1 Convert hui-toggle-entity-row to TypeScript/LitElement (#1939)
* Convert hui-toggle-entity-row to TypeScript/LitElement

* Properly set generic-entity properties

* Addressed review comments

* Address review comments
2018-11-07 09:30:05 +01:00
Paulus Schoutsen
14b959b91b Fix cover showing error 2018-11-06 15:17:01 +01:00
Paulus Schoutsen
e2b9893b17 Expose entities for Google/Alexa (#680)
* Add entity filter

* Show exposed entities on cloud panel

* Fix tests

* Revert some testing changes

* Cursor: pointer

* Fix

* Update tests to TS
2018-11-06 14:22:59 +01:00
Thomas Lovén
54e43758d3 Make conditional not take up space in stacks when hidden (#1999)
* Make conditional not take up space in stacks when hidden

* Update hui-conditional-card.ts
2018-11-06 12:39:00 +01:00
Paulus Schoutsen
92af45d7fd Lint 2018-11-06 11:51:33 +01:00
Michael Scherer
5891a6ee7d Fix for thermostats without current temperature (#1979)
* fix for thermostats without current temperature

* make linter happy

* always render value, uom only when there is a value

* Update hui-thermostat-card.ts
2018-11-06 11:25:25 +01:00
Ian Richardson
c10e409634 Convert cover-row to TypeScript/LitElement (#1933)
* Convert cover-row to TypeScript/LitElement

* Extract `supports` methods from cover model

* Address review comments

* Revert line endings mixup

I suck at vs code apparently...

* Address review comments

* Address review comments: error-row not working
2018-11-06 11:07:15 +01:00
Ian Richardson
6432207bf1 New Card: Shopping List (#1970)
* New Card: Shopping List

Following features:
- Add item
- Edit item
- Complete item
- Clear items

* Address Travis complaint

* Addressed review comments

* Update translation variable name

* Line up input row text

* Taking MVP to heart

Addressed review comments and scaled this back to just get a simple shopping list card out there and we can discuss/debate how best to add the additional pieces with smaller PRs

* Remove calling connected in set hass
2018-11-06 10:47:24 +01:00
Zack Arnett
935639e5e0 Add getElementConfig to Glance + Add Form UI for updating YAML (#1944)
* Working version

* Working kind of

* Some more changes

* More review changes

* Progress

* Review updates

* Adding new changes

* Remove un-needed code

* Adding Types

* Updating UI Editor a bit

* Updating from missed reviews

* Updates from Reviews

* Yaml is not update each time. Instead stored as LovelaceConfig.

* Update to not pull config from preview but store it each time it changed

* Updating from Reviews

* Try catch fix

* Update hui-dialog-edit-card.ts
2018-11-06 10:09:28 +01:00
Paulus Schoutsen
cdb2093ea6 Ts all the tests (#1998)
* Convert tests to TypeScript

* Add types for tests

* Rename files to TS

* Fix up test imports

* Fix TSC errors

* Liiiint

* Add types to util method signatures

* Some more types
2018-11-06 10:09:09 +01:00
Karl Kihlström
856ef34964 <path> error fix & literals (#1993) 2018-11-05 19:46:41 +01:00
Karl Kihlström
cf19ceb193 Filter out non number states instead of assigning them 0 (#1987) 2018-11-05 16:28:36 +01:00
Paulus Schoutsen
e5fe2950af Split up cloud card (#1983)
* Split up cloud card

* Fix quotes
2018-11-05 09:59:19 +01:00
Paulus Schoutsen
1ca242405b Convert auth to TS (#1976)
* Convert auth to TS

* Lint

* Update HA-JS-WS to 3.2.0

* Migrate ws collections to TS

* Upgrade to latest HAWS

* Bump HAWS

* Lint

* Add types to WS calls
2018-11-04 10:01:33 +01:00
Michael Scherer
bcbf0ba75a add vscode extension recommondations (#1978) 2018-11-03 22:57:45 +01:00
Michael Scherer
4810042373 Hide state if its unknown e.g. the climate entity does not have one (#1977)
* Hide state if its unknown e.g. the climate entity does not have one

* state can not be null

* better comparsion

* use double quotes
2018-11-03 21:51:55 +01:00
Paulus Schoutsen
e1c90d74e3 Bumped version to 20181103.1 2018-11-03 19:17:48 +01:00
Zack Arnett
984570c55b Revert RTL PR (#1975)
* Revert RTL PR

* Missed this change
2018-11-03 19:16:55 +01:00
Zack Arnett
f489d88be4 Revert RTL PR (#1975)
* Revert RTL PR

* Missed this change
2018-11-03 19:15:51 +01:00
Paulus Schoutsen
6a84395303 Merge pull request #1974 from home-assistant/dev
20181103.0
2018-11-03 13:40:00 +01:00
Paulus Schoutsen
a3847ddd2a Merge remote-tracking branch 'origin/master' into dev 2018-11-03 13:26:48 +01:00
Paulus Schoutsen
dc0f023754 Version bump to 20181103.0 2018-11-03 13:24:36 +01:00
Paulus Schoutsen
89677577ef Update translations 2018-11-03 13:24:20 +01:00
Ronen Hayun
0922314134 POC for RTL support (#1966)
* POC for RTL support

* POC for RTL support

* POC for RTL support
2018-11-03 13:21:58 +01:00
Paulus Schoutsen
c68604d1fe Mark edit as alpha (#1973) 2018-11-03 13:19:44 +01:00
Zack Arnett
372cfdecf4 Light, Thermostat, and Gauge - Theme Addition (#1947)
* Update to have theme options

* Make ShouldUpdate into a help function

* Adding types to changed function
2018-11-02 20:59:14 +01:00
Paulus Schoutsen
ef40a0ceea Update frontend to 20181026.4 2018-11-02 20:08:01 +01:00
Paulus Schoutsen
343d18241b Update translations 2018-11-02 20:07:46 +01:00
Paulus Schoutsen
2ecb6e0f9e pic 2018-11-02 20:07:32 +01:00
Paulus Schoutsen
38b8e5e7b7 Update translations 2018-11-02 20:07:06 +01:00
Zack Arnett
058f8d178e Adding div arround each row to deal with spacing 2018-11-02 19:48:13 +01:00
Paulus Schoutsen
fbc1a722bd Normalize all line endings 2018-11-02 16:00:25 +01:00
Paulus Schoutsen
727cfe92e3 Force correct line endings 2018-11-02 15:59:48 +01:00
Paulus Schoutsen
4bcb13486e Version bump to 20181026.3 2018-11-02 14:06:02 +01:00
Paulus Schoutsen
4aa8603ebf Stop release if TypeScript throws 2018-11-02 14:05:49 +01:00
Paulus Schoutsen
ba33c8a456 Fix broken shit 2018-11-02 14:05:36 +01:00
Paulus Schoutsen
6f4cd88988 Merge branch 'master' into dev 2018-11-02 12:44:44 +01:00
Paulus Schoutsen
1f2deff6f0 Version bump to 20181026.2 2018-11-02 12:29:51 +01:00
Paulus Schoutsen
575882be5a Fix conditional card with undefined hass (#1927)
* Fix conditional card with undefined hass

* Conditional appendChild

* Allow updating card properly
2018-11-02 12:27:56 +01:00
Paulus Schoutsen
d591c45e4d Propagate hass correctly (#1918) 2018-11-02 12:27:55 +01:00
Paulus Schoutsen
f9b06adc9f Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-11-02 12:27:55 +01:00
Ian Richardson
6cc67dc790 New warning row for non-existent entities (#1946)
* New warning row for non-existent entities

* Update src/panels/lovelace/entity-rows/hui-error-entity-row.ts

* Address my own comments
2018-11-02 12:26:20 +01:00
Ian Richardson
c0c7c0f41a Remove .js from imports (#1948)
* Remove .js from lovelace

Also cleaned up some trailing whitespace

* Go big or go home

* More removals

* Revert changes to gallery webpack

* Revert changes to webpack.config.js
2018-11-02 12:26:03 +01:00
Paulus Schoutsen
eb505d4bd7 don't compress for CI runs (#1949) 2018-11-02 12:15:45 +01:00
Zack Arnett
aebd1a1be1 Remove side effects of render and Add types - Button/Glance (#1919)
* Remove side effects of render and Add types

* Addressing changes

* Updating when to apply theme

* Review Updates

* Fixing last reviews

* Updates from travis
2018-11-02 10:13:49 +01:00
Bram Kragten
447c06d817 Fix overlapping device cards (#1940) 2018-11-01 09:18:12 +01:00
Ian Richardson
ce78131258 Remove unused mixin (#1934) 2018-10-31 09:49:11 +01:00
Ian Richardson
acab465c96 Move click and tooltip function to LL folder (#1935) 2018-10-31 09:45:38 +01:00
Zack Arnett
4ea83b8bd5 Fixes: #1902 - Thermostat/Light Background (#1931)
* Thermostat theme fixes

* Might as well put the light card in there
2018-10-31 09:38:56 +01:00
Zack Arnett
094eb632f2 Update Types for various cards (#1920)
* Update Types

* Travis fix

* Travis change

* Add HTMLElementTagNameMap for gauge

* Review Changes

* Formatting values as string to be accepted into format temp
2018-10-31 09:34:12 +01:00
Paulus Schoutsen
03b1e40593 Add preview to edit LL card (#1929) 2018-10-30 20:31:56 +01:00
Bram Kragten
2164b629cf catch translation errors (#1928) 2018-10-30 19:16:20 +01:00
Thomas Lovén
a081047008 Fix calculation of glance card size (#1930) 2018-10-30 15:57:08 +01:00
Paulus Schoutsen
2e395c1b0d Update version to 20181030.0 2018-10-30 11:33:37 +01:00
Paulus Schoutsen
520e03a612 Update translations 2018-10-30 11:33:20 +01:00
Paulus Schoutsen
a771a44557 Fix conditional card with undefined hass (#1927)
* Fix conditional card with undefined hass

* Conditional appendChild

* Allow updating card properly
2018-10-30 11:30:57 +01:00
Ian Richardson
38bfe8c8de Convert hui-call-service-row to TypeScript/LitElement (#1894)
* Convert hui-call-service-row to TypeScript/LitElement

* Update on _config change

* Addressed review comments

* Made `service_data` optional and verified that `callService` does use `entity` if it is available in the passed config.
* Removed check in `entities-card` for `service-data` and will remove the full config check once other PRs have been applied to avoid merge conflicts
* Will create a docs PR to update the docs

* Addressed review comments

* Removed entity config check in entities-card
* Made `icon` optional. Default now `remote`
* Made `action_name` optional. Default now 'Run'

* `.icon`
2018-10-30 11:15:12 +01:00
Zack Arnett
7ca2ef4c4c Addition to Edit Love Lace Cards (#1885)
* Initial Commit

* Removing old code

* Switching to litlement and ts

* remove .ts from extension

* Addressing a few reviews

* Added ShowDialog Still no whammy

* Fix some things

* Extract one more data method

* Add more types

* Clean up imports

* Call super

* Finishing touches

* Fix typescript check
2018-10-30 11:15:02 +01:00
Paulus Schoutsen
de5f02d706 Update TypeScript to latest (#1924) 2018-10-30 11:05:56 +01:00
Paulus Schoutsen
6f7ddef4a4 Update mdi icons (#1922) 2018-10-30 11:04:25 +01:00
Paulus Schoutsen
d78b5fac73 Update vaadin components (#1923) 2018-10-30 11:04:17 +01:00
Paulus Schoutsen
7cf65ba066 Update testing tools (#1925) 2018-10-30 11:04:06 +01:00
Paulus Schoutsen
91966f676a Update polymer (#1921) 2018-10-30 09:25:04 +01:00
Paulus Schoutsen
5a1ca3855b Propagate hass correctly (#1918) 2018-10-30 08:38:27 +01:00
Zack Arnett
226203143b Merge pull request #1874 from zsarnett/light-card
LoveLace Light Card
2018-10-29 23:39:12 -04:00
Zack Arnett
a5304115f0 UPdate Type for color 2018-10-29 22:24:23 -04:00
Zack Arnett
f7458b8d41 Add Hs_color to types 2018-10-29 20:12:20 -04:00
Zack Arnett
410b66d40f Adding more types 2018-10-29 18:15:35 -04:00
Zack Arnett
1fcf510278 Adding Type to Returns 2018-10-29 18:11:34 -04:00
Zack Arnett
bb4ce278b0 Fixing Gallery and updating timeout type 2018-10-29 18:07:57 -04:00
Zack Arnett
6dac48e5b8 Merge pull request #1913 from home-assistant/entities-padding-fix
Fixes #1910 - Entities Margin correction
2018-10-29 15:45:15 -04:00
Zack Arnett
7178d208d3 Light Card addition 2018-10-29 14:33:38 -04:00
Zack Arnett
00935c86d0 Add themes to entities (#1909) 2018-10-29 19:29:27 +01:00
Zack Arnett
3dde78cadf Adding div arround each row to deal with spacing 2018-10-29 13:54:10 -04:00
Zack Arnett
630214ddb9 Merge pull request #1911 from home-assistant/add-bypass
add arm_custom_bypass
2018-10-29 13:25:56 -04:00
Zack Arnett
b3f8781646 Merge pull request #1912 from home-assistant/prettier-fix
Fixes errors in PRs based on dev
2018-10-29 11:54:36 -04:00
Zack Arnett
b717402d26 Fixes errors in PRs based on dev 2018-10-29 11:37:23 -04:00
Zack Arnett
0d339e0cba add arm_custom_bypass 2018-10-29 11:33:01 -04:00
Ian Richardson
1d014bf6e3 Convert hui-section-row to TypeScript/LitElement (#1897)
* Convert hui-section-row to TypeScript/LitElement

* Address review comments
2018-10-29 10:53:17 +01:00
Zack Arnett
5ab15dc27f add arm night (#1908) 2018-10-29 08:59:33 +01:00
Timmo
c347be6f35 Lovelace - Weather Card: Adjust margins and move text (#1880)
* Thermostat fix (#1867)

* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator

* Add version bump script

* Fix hass setting on stack (#1868)

* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint

* Bumped version to 20181026.1

* 🔨 move not text to header and name to secondary text

* 🔨 reduce some other margins
2018-10-29 08:30:56 +01:00
Paulus Schoutsen
d47c2a6fe0 Merge remote-tracking branch 'origin/master' into dev 2018-10-29 08:29:44 +01:00
Ian Richardson
82eb33a7d4 Convert hui-climate-entity-row to TypeScript/LitElement (#1899)
* Convert hui-climate-entity-row to TypeScript/LitElement

* Address review comments

* Address review comments
2018-10-28 21:09:41 +01:00
Ian Richardson
4f6bae193d Convert hui-weblink-row to TypeScript/LitElement (#1898)
* Convert hui-weblink-row to TypeScript/LitElement

* Addressed review comments

* Made name and icon fields optional. Will create a corresponding PR to the docs to update them as Optional
* Updated entities-card to not check weblink config as that is the job of the element (entities-card should be updated to not check service-call config either as that is the job of the row element as well)

* Addressed review comments

That's cool!
2018-10-28 21:08:58 +01:00
Ian Richardson
b8752c4158 Convert hui-divider-row to TypeScript/LitElement (#1896)
* Convert hui-divider-row to TypeScript/LitElement

* Add return types

* Fixed style issues

* Address review comments
2018-10-28 21:07:30 +01:00
Zack Arnett
b6d0d777bf Gauge convert and fix issues (#1886)
* Gauge convert and fix issues

* Fixing Unit_of_Measurement

* Addressing Reviews

* Updating typing
2018-10-28 20:47:21 +01:00
Ian Richardson
8c155d4d0e Convert hui-state-badge-element to TypeScript/LitElement (#1892)
* Convert hui-state-badge-element to TypeScript/LitElement

The state image is not updating. This is true with the image-element as well. There's probably something simple between them both that I'm missing in my syntax for defining them

* Added htmlmap interface

* Addressed review comments
2018-10-28 20:36:53 +01:00
Ian Richardson
bdf5d0f5c6 Convert hui-state-icon-element to TypeScript/LitElement (#1891)
* Convert hui-state-icon-element to TypeScript/LitElement

The icon is not currently dispalying and therefor cannot determine if changing as well. Everything else is working. Should probably create a base class for all these elements to extend for simple things like checking for the entity and setting hass correctly once I get that sorted out.

* Fixed setting of properties

* Remove ! on this._config

* Addressed review comments

* Moved event handlers to private functions to avoid arrow function creation on each render
* Check for `hass` before looking for state
* Movevd absolute import above relative imports
2018-10-28 20:35:48 +01:00
Ian Richardson
4959b861bd Convert hui-image-element to TypeScript/LitElement (#1890)
* Convert hui-image-element to TypeScript/LitElement

WIP
Some of the state portions passed down to ha-image are not updating the view.

* Fixed setting of properties

* Add tagnamemap interface

* Address review comments
2018-10-28 20:25:12 +01:00
Paulus Schoutsen
a4fa0ae64b Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-10-28 20:07:05 +01:00
Ian Richardson
7cd5f36c7a Convert hui-service-button-element to TypeScript/LitElement (#1888)
* Convert hui-service-button-element to TypeScript/LitElement

Will need to rebase once hui-icon-element PR is merged

* Added return types

* Convert ha-call-service-button attributes to properties

* Re-order imports
2018-10-28 13:57:52 +01:00
Ian Richardson
ecfdb16957 Convert hui-state-label-element to TypeScript/LitElement (#1893) 2018-10-28 09:09:43 +01:00
Ian Richardson
d31195fc87 Add to HTML tag name map (#1900) 2018-10-28 09:00:37 +01:00
eyager1
f3ef4cef74 Change icon to set operation_mode to "off" (#1883)
The choice of the "fan-off" icon to set the climate operation_mode to off should be changed . Many HVAC thermostats have a manual fan control.   The use of the fan icon in this card would imply that it would change or toggle the fan_mode of a climate component, not the operation_mode.  If setting the fan_mode of a climate component via this card were to be implemented in the future the use of "fan" and "fan-off" icons would be the most logical choices for icons.   I propose changing the icon that would set the operation_mode to off to generic power icon such as "power", or "power-off" to avoid confusion and to reserve the "fan" and "fan-off" icons for future use to change the the state of fan_mode.
2018-10-28 08:57:54 +01:00
Ian Richardson
ec6db9c8ca Merge pull request #1895 from iantrich/row-types
Make hass optional within EntityRow as it may not be defined
2018-10-27 21:17:45 -05:00
Ian Richardson
bb483c9d72 Make hass optional within EntityRow as it may not be defined 2018-10-27 21:00:06 -05:00
Zack Arnett
414448137a Merge pull request #1871 from iantrich/typescript-icon-element
Convert hui-icon-element to TypeScript/LitElement
2018-10-27 21:50:09 -04:00
Ian Richardson
d0acef3ecb Add return types 2018-10-27 18:01:07 -05:00
Ian Richardson
5617416932 cleaned up elementconfig type order 2018-10-27 16:54:27 -05:00
Ian Richardson
bf0eb798d9 Implemented navigate function
Fix linting error
2018-10-27 16:51:44 -05:00
Ian Richardson
8afc3812b7 Remove element-click refactor
Was unable to get computeTooltip to work for non-converted elements. There are not many elements that use this so will just remove this mixin once conversion of all to TS has been completed.
2018-10-27 16:40:43 -05:00
Ian Richardson
5a7841e6bf Pass correct node to handleClick 2018-10-27 15:51:34 -05:00
Ian Richardson
2758e86fab Convert hui-icon-element to TypeScript/LitElement and extract ElementClick mixin functions 2018-10-27 15:51:34 -05:00
Paulus Schoutsen
d9935a714e Bumped version to 20181026.1 2018-10-27 12:05:14 +02:00
Paulus Schoutsen
d6a9d6829b Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:05:06 +02:00
Paulus Schoutsen
8b02371786 Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:00:40 +02:00
Paulus Schoutsen
9a5b692204 Add version bump script 2018-10-27 11:40:52 +02:00
Zack Arnett
0b504c7df2 Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 11:16:10 +02:00
Zack Arnett
6cab3bbc8e Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 10:59:33 +02:00
Paulus Schoutsen
35194cf345 Extract navigate mixin (#1865)
* Extract navigate to function

* Remove eventsmixin properly and side effects
2018-10-27 10:56:03 +02:00
Paulus Schoutsen
13c5724d7c Fix version extract (#1866) 2018-10-26 23:22:45 +02:00
Zack Arnett
156ea62ffa Merge pull request #1863 from home-assistant/states-sensor-badges
States Sensor badges Padding fix
2018-10-26 15:24:10 -04:00
Zack Arnett
22693bcbcc Updating to meet Material Design standards 2018-10-26 14:11:11 -04:00
Zack Arnett
ba70220659 Prettier fixes (#1864) 2018-10-26 19:40:53 +02:00
Gabriel Oliveira
fc96d33d6a 1813 - Improve Hass.io System cards UI (#1862)
* 1813 - Improve Hass.io System cards UI

* 1813 - Move margin to proper card file
2018-10-26 19:38:02 +02:00
Zack Arnett
685915e13c Fix States Badges Padding 2018-10-26 12:39:40 -04:00
Paulus Schoutsen
c39b17f12c Version bump to 20181026.0 2018-10-26 10:10:27 +02:00
Paulus Schoutsen
110d9a4cc1 update translations 2018-10-26 10:07:24 +02:00
Piotr Dobrowolski
8902328b30 Allow custom UI on "card" entities (#1824)
This will always render entities with `custom_ui_state_card` attribute
set in `entities` state card. Fixes custom UI on `media_player` objects.
2018-10-26 10:06:17 +02:00
Ian Richardson
7ff9211dfc Convert hui-picture-elements-card to TypeScript/LitElement (#1853)
* Convert hui-picture-elements-card to TypeScript/LitElement

Elements are not showing currently

* Address review comments

* Update demo
2018-10-26 10:04:04 +02:00
Paulus Schoutsen
17b4f873e7 Enforce prettier for TypeScript (#1860) 2018-10-26 09:37:47 +02:00
Zack Arnett
741c0c08b9 Thermostat Card LoveLace (#1814)
* POC/WIP: Thermostat Card

* Fix jQuery imports

* Cleaning out testing code and working on reviews

* Colors Dynamic + mode dynamic

* Minor changes

* adding html prefix

* Dynamic Text size and colors - getting somwhere slowly.

* Review Changes - Working version (i think)

* Updating Gallery Entry

* Travies Review

* Remove provide plugin, move CSS to JS

* Add provideHass to demo

* Demo fixes

* tweak margins

* Travis changes

* Style Tweaks

* Update to client Width range
2018-10-26 09:30:58 +02:00
Ian Richardson
c42d9385d1 Convert hui-horizontal-stack-card to TypeScript/LitElement (#1851)
* Convert horizontal-stack to TypeScript/LitElement

Base stack-card class for horizontal and vertical stack cards to extend as their code overlaps a lot. Not sure if it should be in `common` or not

* rename locale hass variable

* Address review comments

* Abstract getCardSize
2018-10-26 09:27:57 +02:00
Thomas Lovén
8cbd667286 Lovelace - Long Press for everything (#1848)
* Long-press controller and lit-directive

* Enable long-press for glance card

* Enable long-press for entity-button

* Use new long-press for picture-elements

* Enable long-press for picture-entity card
2018-10-26 09:27:39 +02:00
Paulus Schoutsen
8bf60d502a Allow mocking websocket commands in the gallery (#1859)
* Allow mocking rest/websocket commands in the gallery

* typo
2018-10-26 09:27:10 +02:00
Zack Arnett
9f60499a3f Fix for input slider on states ui (#1861) 2018-10-25 20:15:31 -04:00
Paulus Schoutsen
56a9ff2b35 Gallery: fix notifs, fake config/services, glance demo (#1857)
* Gallery: fix notifs, fake config/services, glance demo

* Fix missing glance states

* Fill in more missing entities

* Add controller to entity filter card
2018-10-25 14:05:22 +02:00
Paulus Schoutsen
8c7b62509b Fix stack card getSize (#1856) 2018-10-25 12:29:05 +02:00
Ian Richardson
5e61065b64 Convert hui-error-card to TypeScript/LitElement (#1852) 2018-10-25 09:28:15 +02:00
Zack Arnett
39dd0524f8 Merge pull request #1792 from zsarnett/entities-card-lit
Updating Entities Card to TS+lit
2018-10-24 21:12:08 -04:00
Zack Arnett
25c6a4d3a6 Switching to new version of localize 2018-10-24 16:34:20 -04:00
Zack Arnett
0b9a4c56a9 Review Update 2018-10-24 16:34:20 -04:00
Zack Arnett
faa08f9e1f Review Update 2018-10-24 16:34:20 -04:00
Zack Arnett
7fbe0937df Review updates 2018-10-24 16:34:20 -04:00
Zack Arnett
66f5e34d52 Removing log console 2018-10-24 16:34:19 -04:00
Zack Arnett
ddf59c8d5c Readding Homeasistant call in types 2018-10-24 16:34:19 -04:00
Zack Arnett
0856073e85 Changing element to unknown 2018-10-24 16:34:19 -04:00
Zack Arnett
06aef18d0c addressiing reviews 2018-10-24 16:34:19 -04:00
Zack Arnett
be63648238 Review Update 2018-10-24 16:34:19 -04:00
Zack Arnett
56e01e66fb Review fix 2018-10-24 16:34:18 -04:00
Zack Arnett
772153e58a Update entities 2018-10-24 16:34:18 -04:00
Zack Arnett
3882a5aa89 Fix for Click Event 2018-10-24 16:34:18 -04:00
Zack Arnett
edf8027bf4 Updating repeat array 2018-10-24 16:34:18 -04:00
Zack Arnett
2fd459381d Updating from Reviews 2018-10-24 16:34:17 -04:00
Zack Arnett
76e67d27e7 Update to Togglable entities 2018-10-24 16:34:17 -04:00
Zack Arnett
18be134ad8 Updating Entities Card to TS+lit 2018-10-24 16:34:17 -04:00
Paulus Schoutsen
1feb9f6a27 Bump version to 20181024.0 2018-10-24 22:14:06 +02:00
Paulus Schoutsen
337a760e73 Update translations 2018-10-24 22:13:49 +02:00
Thomas Lovén
54cd412107 Fix for some dev pages crashing on iOS. (#1850)
This should probably be reverted when the fixes in
https://bugs.webkit.org/show_bug.cgi?id=174629 has been rolled out.
2018-10-24 22:04:27 +02:00
Ian Richardson
cf2171ece1 Convert hui-vertical-stack-card to TypeScript/LitElement (#1846)
Failed to rebase previous branch and am taking my working changes and applying to a new branch based off of current master.

Updated tslint.json to allow for prefixed `_` to variable names
2018-10-24 12:11:09 +02:00
Paulus Schoutsen
47fb8a5513 Fix mixin names (#1849) 2018-10-24 12:10:58 +02:00
Ian Richardson
06bf134bd4 Remove extending of HassLocalizeMixin as it is not needed (#1847) 2018-10-24 11:42:09 +02:00
Timmo
cf8899fcbe ↕️ fix sorting of addons (#1845) 2018-10-24 09:58:44 +02:00
Charles Garwood
c05b77961e Reduces device registry card height to only show 4 entities before scrolling (#1844) 2018-10-23 17:40:31 +02:00
Paulus Schoutsen
19c365cd12 Update version to 20181023.0 2018-10-23 14:01:51 +02:00
Paulus Schoutsen
29f032087e Update translations 2018-10-23 14:01:22 +02:00
Paulus Schoutsen
d0cb7b9724 TS history data (#1839)
* Convert history data to TS

* Lint

* Extract cached history

* Move around
2018-10-23 13:54:52 +02:00
Thomas Lovén
ad162677a6 Introduce typescript to hui-conditional-card (#1831) 2018-10-23 12:11:06 +02:00
Thomas Lovén
fbbbe7d17d Add HomeAssistant object hass to LovelaceCard interface (#1843) 2018-10-23 10:53:42 +02:00
Ian Richardson
ef0d11c042 connection is being populated for HomeAssistant type, not conn (#1841) 2018-10-23 09:33:04 +02:00
Ian Richardson
fc2608980f Generate icons from `.ts. files (#1842) 2018-10-23 09:32:27 +02:00
Tom Raithel
cc97e82a78 Improve size of device cards and add max-width for entities (#1838)
fixes #1751
2018-10-23 00:12:39 +02:00
Paulus Schoutsen
54e3191de6 Reinstate first call true 2018-10-22 21:40:35 +02:00
Paulus Schoutsen
4f8c8762c7 Fix second visit to history panel (#1835) 2018-10-22 21:37:21 +02:00
Zack Arnett
c190f1986e Merge pull request #1834 from home-assistant/fix-chart-tooltip
Fix chart tooltip
2018-10-22 15:13:25 -04:00
Paulus Schoutsen
b418048bc9 Fix chart tooltip 2018-10-22 21:07:31 +02:00
Paulus Schoutsen
0fdd1c74f2 Always define localize func (#1830) 2018-10-22 20:31:43 +02:00
Thomas Lovén
3b1b2b95e7 Add option to pick number of columns for glance card (#1832) 2018-10-22 20:10:48 +02:00
Paulus Schoutsen
3bb5484b7f Bump version to 20181021.0 2018-10-21 20:32:05 +02:00
Paulus Schoutsen
d93c09b27b Fix reference to this.language (#1825) 2018-10-21 20:31:41 +02:00
Paulus Schoutsen
e7ec18d270 Fix lint 2018-10-21 20:31:24 +02:00
Paulus Schoutsen
3ebe21e135 Update translations 2018-10-21 20:16:09 +02:00
Ian Richardson
aca1ecf1ee Convert hui-markdown-card to TypeScript/LitElement (#1808)
* Convert hui-markdown-card to TypeScript/LitElement

* Addressed review comments

* Addressed review comments

* Addressed review comments
2018-10-21 20:09:11 +02:00
Charles Garwood
e8ef2fdc2c this.language -> this.hass.language (#1816) 2018-10-21 15:12:28 +02:00
Paulus Schoutsen
b129d5fb08 Refresh cloud status if paying sub info comes in (#1822) 2018-10-21 12:28:16 +02:00
Zack Arnett
11f4564465 Merge pull request #1807 from home-assistant/safer-icon-brightness
Safer brightness calculation for icons
2018-10-19 20:58:46 -04:00
Thomas Lovén
c9d140281b fix typo in variable name 2018-10-19 16:35:52 +02:00
PhracturedBlue
fa637a37d5 Fix mailbox issues with this.fire() and this.language undefined (#1809)
* Fix bug with this.fire and this.language

* Proper language variable
2018-10-19 16:15:31 +02:00
Thomas Lovén
1589c3fc51 Better error message 2018-10-19 15:29:05 +02:00
Thomas Lovén
bdc2b31202 Complain and ignore instead of fixing 2018-10-19 12:07:33 +02:00
Thomas Lovén
0970e1e33c Fix overflow of image elements. (#1811)
* Fix overflow of image elements.

* Positioning safeguards
2018-10-19 10:41:08 +02:00
Timmo
028003dffc Set attributes in input form controls (#1805)
* 🔨 add autocapitalize, autocomplete, autocorrect and spellcheck attributes

* 🔨 switch autocapitalize to none

* 🔨 add attributes to dev-state

* 🔨 add attributes to entity-picker
2018-10-19 09:13:45 +02:00
Thomas Lovén
1eb4ac7f34 Safer brightness calculation for icons 2018-10-19 00:01:23 +02:00
Zack Arnett
d97e356376 Merge pull request #1794 from zsarnett/glance-unavailable
Glance Card update to show when entity is unavailable
2018-10-18 11:21:08 -04:00
Zack Arnett
d36352af16 Removing Repeat 2018-10-18 10:26:42 -04:00
Zack Arnett
05ae92d5f8 Merge pull request #1786 from zsarnett/glance-column-change
Changing Glance Column Width default to fill card
2018-10-18 09:52:16 -04:00
Paulus Schoutsen
dce612f944 Trim whitespace 2018-10-18 15:40:37 +02:00
Ian Richardson
3a196203c3 Convert hui-iframe-card to LitElement/TypeScript (#1801)
* Convert hui-iframe-card to LitElement/TypeScript

* style cleanup

* Address review comments

* Addressed review comments
2018-10-18 15:37:01 +02:00
Zack Arnett
33578a6289 Updating from reviews 2018-10-18 09:28:49 -04:00
Zack Arnett
4c3db2119b Update to show when entity is unavailable 2018-10-18 09:14:32 -04:00
Zack Arnett
4a7ff3cd94 Removing Column width variable in interface 2018-10-18 09:06:29 -04:00
Paulus Schoutsen
5578580d78 Verison bump to 20181018.0 2018-10-18 13:39:45 +02:00
Paulus Schoutsen
dc1d8366a5 Fix automation editor (#1804) 2018-10-18 13:39:18 +02:00
Paulus Schoutsen
252f0692c8 Add hass on badge (#1802)
* Add hass on badge

* Add more hass everywhere
2018-10-18 13:21:06 +02:00
Thomas Lovén
9d13925280 Show currently selected language in profile settings. Resolves #1797 (#1800) 2018-10-18 09:55:28 +02:00
Thomas Lovén
5462a71f52 Use this.hass.language since this.language is removed from localize mixin. (#1799) 2018-10-18 09:54:01 +02:00
Josh McCarty
42953a0b62 Use title case for all configuration pages (#1793)
Localize translations will need to be updated separately.
2018-10-18 09:25:35 +02:00
Thomas Lovén
f146a1d80f Lovelace: Allow press-and-hold on picture-elements elements. (#1745)
* Allow press-and-hold on picture-elements elements.
2018-10-17 22:16:17 +02:00
Zack Arnett
a113c71de7 Merge branch 'master' into glance-column-change 2018-10-17 15:06:29 -04:00
Zack Arnett
1f642f436a Adding Theme option to Glance and Button Cards (#1783)
* Adding Theme option to Glance and Button Cards

* Updateing Theme default to `default`

* Prettier Update
2018-10-17 20:20:05 +02:00
Zack Arnett
62d27a17d5 Takes out column width variable 2018-10-17 13:06:57 -04:00
Zack Arnett
35941a58a5 Prettier Fixes 2018-10-17 11:11:29 -04:00
Paulus Schoutsen
2ace2165e0 version bump to 20181017.0 2018-10-17 14:06:59 +02:00
Paulus Schoutsen
1cfcacfa9a Update translations 2018-10-17 14:06:20 +02:00
Paulus Schoutsen
e020fd1154 👋 decorators (#1790) 2018-10-17 13:58:24 +02:00
Paulus Schoutsen
1dcc645fec Guard cloud info being null (#1788) 2018-10-17 13:48:31 +02:00
Thomas Lovén
87fba75860 Fix margins in vertical-stack (#1789) 2018-10-17 13:48:04 +02:00
Paulus Schoutsen
294360d35a Fix babel config 2018-10-17 09:20:41 +02:00
Paulus Schoutsen
a7684d7206 Add some decorators (#1784)
* Add some decorators

* Disable sort keys

* Add babel plugins

* Update typescript to 7.1
2018-10-16 23:30:13 +02:00
Paulus Schoutsen
af81ede100 Fix showing sub info (#1785) 2018-10-16 23:29:40 +02:00
Zack Arnett
698beedaa2 Changing Clance Column width default to fill card 2018-10-16 16:20:28 -04:00
Paulus Schoutsen
a6b4cce7f3 Upgrade MDI icons (#1781) 2018-10-16 20:02:09 +02:00
ehendrix23
ba66ff840f Added domain icon for homekit (#1782)
Added domain icon home-automation for domain homekit. With PR home-assistant/pull/17180 the homekit component will create entries within logbook. This PR is to set the icon displayed then for those logbook entries to be the home-automation icon.
2018-10-16 19:06:19 +02:00
Zack Arnett
c296f33ba1 Update Button Card to TS + Lit (#1778)
* Updating from Reviews - Reset commits and force pushing

* Removing Redundant check on config

* Checking Entity before setting config
2018-10-16 19:04:29 +02:00
Paulus Schoutsen
e7a49192bd Type check as part of lint (#1780)
* Type check as part of lint

* Lint

* Validate service exist for call-service action

* Fix for of
2018-10-16 17:21:05 +02:00
Thomas Lovén
5774d913af Lovelace: Add a label entity row (#1779)
* Add a label entity row

* Style fixes

* Allow blank label text

* Rename to section
2018-10-16 16:50:40 +02:00
Charles Garwood
b068db3f7a Hide Z-Wave "Remove/Replace Failed Node" Buttons unless nodes are failed (#1777)
* Hide failed node buttons if node isn't failed

* Cleanup
2018-10-16 09:05:15 +02:00
Paulus Schoutsen
8e49241e7c Add types to hass object (#1776) 2018-10-16 09:04:10 +02:00
Tom Raithel
b8cee5cc9c Fix Icon spacing in Logbook list (#1774) 2018-10-15 21:02:32 +02:00
Zack Arnett
794808d3a7 Button Card - Lovelace Addition (#1766)
* Initial Commit - Button Card

* Fixing Coloring Review

* Resolving Reviews

* Updating last Reviews
2018-10-15 20:07:13 +02:00
Zack Arnett
48f6d1dfec Adding Alarm Panel to Lovelace (#1758)
* Adding Alarm Panel

* Updating error in Lint

* Review Changes

* Using label-badge for upper right icon

* Resolving Reviews

* Prettier Fixes

* Updating style to fix overlapping state badge

* Adding Alarm Card back to create element

* Resolving reviews and reposition of Icon

* Updating to Localize Labels
2018-10-15 19:14:43 +02:00
Paulus Schoutsen
97e1aae9c0 Introduce TypeScript (#1773) 2018-10-15 19:07:08 +02:00
Paulus Schoutsen
e2511c5ed3 Remove default export fire event (#1772)
* Remove default export fire event

* Update provide_hass.js
2018-10-15 06:17:33 +02:00
Paulus Schoutsen
74bdfc8c2d Use style.setProperty instead of updateStyles 2018-10-14 22:53:33 +02:00
Paulus Schoutsen
fbccf23d36 Clean up localize mixin (#1771) 2018-10-14 22:40:43 +02:00
Paulus Schoutsen
906aaa15a3 20181014.0 2018-10-14 19:05:46 +02:00
Paulus Schoutsen
0ae1f9c754 Update Translations 2018-10-14 19:05:45 +02:00
Adam Mills
f1bd89fd02 Fix checking for syntax if for doesn't exist (#1769) 2018-10-14 19:04:51 +02:00
Paulus Schoutsen
3949b47e51 Introduce object rest spread (#1763) 2018-10-14 19:03:25 +02:00
Bram Kragten
2f6595bca7 add min-width to childeren of horizontal stack (#1761)
See https://css-tricks.com/flexbox-truncated-text/
2018-10-13 16:02:47 +02:00
Paulus Schoutsen
3bcd0ddc46 Migrate Babel 6 -> 7 (#1762)
* Migrate Babel 6 -> 7

* Update babel-eslint
2018-10-13 11:25:03 +02:00
Paulus Schoutsen
ca93c2cfcd Convert glance card to lit (#1760)
* Convert glance card to lit

* Guard for hass before config

* Lint

* better click listening

* Move config check

* Format HTML
2018-10-12 22:18:38 -07:00
Paulus Schoutsen
a633e3c553 version bump to 20181012.0 2018-10-12 14:49:33 +02:00
Paulus Schoutsen
bef2731207 Update translations 2018-10-12 14:49:15 +02:00
Paulus Schoutsen
ee53ee4077 Missing localize (#1757) 2018-10-12 12:50:58 +02:00
Paulus Schoutsen
34bfc12647 Prettier 💎 (#1737)
* Add prettier

* Apply Prettier
2018-10-11 12:22:11 +02:00
Nikolay Vasilchuk
3b425c3e14 Logbook: filter by entity and period (#1728)
* Filter logbook by entity_id

* Filter logbook by period

* Filter logbook styles

* CI Fix

* Review

* Review

* CI Fix
2018-10-11 11:46:16 +02:00
Zack Arnett
69eb007ea2 Adding Gauge Card to Lovelace (#1742)
* Commiting Only needed Files. Adds Gallery Entry

* Adding Attribute current_temperature to gallery entry config

* Fixing code from review and updating gallery

* Updating Gallery to show errors

* Resolving Reviews and updating gallery

* Deleting unused line

* Minor changes

* Address my own comments.
2018-10-11 10:30:56 +02:00
Jerad Meisner
90c3350d40 Fix error when only one state history entry. (#1750) 2018-10-09 11:12:04 +02:00
John Arild Berentsen
a7ddbd72b3 Fix non-working zwave log andriod PWA (#1714)
* Fix non-working andriod PWA

* Forgot clearing dialog setInterval

* Correctly identify pwa or browser interval clearing

* Move isPwa to common

* Stab at making imorted dialog

* Redone refresh

* Remove unused property
2018-10-09 11:10:32 +02:00
Paulus Schoutsen
5a2ee98ae2 Version bump to 20181007.0 2018-10-07 23:15:44 +02:00
Karl Kihlström
ea0b5d5e26 Add sensor-graph-card (#1744)
* Added sensor-graph-card

* Removed Object as type

* Removed unused attributes

* Fixed card config

* Changed svg rendering to lit html svg

* Fixed config conversion

* Changed to _config, _entity, _line as private

* Removed lit-element package

* Renamed to hui-sensor-card

* lit-html 0.6.2 changes

* Added logic for graph config option
2018-10-07 23:13:10 +02:00
Paulus Schoutsen
af2cb1be1a Update Lit to 0.6.2 (#1748) 2018-10-07 21:32:50 +02:00
Jerad Meisner
c30e7ac683 Add time created to persistent notifications. (#1733)
* Add time created to persistent notifications.

* Add tooltip to show actual date.

* Fix style rules.

* Fix duplicate ids.
2018-10-07 18:59:54 +02:00
Paulus Schoutsen
7fb5ac11fd Update translations 2018-10-07 18:52:30 +02:00
Paulus Schoutsen
b2dc0ac819 Proper fix for mjs to hassio too 2018-10-07 18:52:01 +02:00
Paulus Schoutsen
dbdf873ba4 transpile mjs (#1746) 2018-10-07 14:11:33 +02:00
Paulus Schoutsen
1b70b6e88c Introduce Lit Element (#1738) 2018-10-07 11:07:02 +02:00
Paulus Schoutsen
c90e13d35e Inline domain icon (#1739) 2018-10-05 21:29:50 +02:00
Paul Davis
442375f76e fix dockerfile for new setups (#1740) 2018-10-05 21:23:31 +02:00
Paulus Schoutsen
81d493e1d6 Version bump to 20181005.0 2018-10-05 17:46:49 +02:00
Paulus Schoutsen
151f16af47 Update translations 2018-10-05 17:46:34 +02:00
Adam Mills
606a220603 [WIP] Handle dict syntax in state trigger "for" (#1725)
* Handle dict syntax in state trigger "for"

* padStart polyfill
2018-10-05 11:33:27 +02:00
Thomas Lovén
362e758c40 Lovelace: Allow glance card to assume theme colors (#1732)
* Allow glance card to assume theme colors

* Better configuration options

* Added example to gallery

* Fixing problems from review
2018-10-05 10:26:31 +02:00
Paulus Schoutsen
2eb3a55f59 Remove last used from long lived access token list. (#1727) 2018-10-05 10:23:29 +02:00
Paulus Schoutsen
6720c03cbc Fix language reference (#1735) 2018-10-04 13:24:07 +02:00
Jerad Meisner
a76386b53b Fix console errors in LL when entities are unavailable. (#1734) 2018-10-04 09:44:01 +02:00
Thomas Lovén
0243632357 Remove margin from conditional if not shown (#1730) 2018-10-04 09:36:14 +02:00
Paulus Schoutsen
bb24b55a67 Update translations 2018-10-03 15:28:12 +02:00
Paulus Schoutsen
f47fd8eec4 Bump version to 20181002.0 2018-10-02 14:17:58 +02:00
Paulus Schoutsen
f1f9f13d82 Update translations 2018-10-02 14:17:44 +02:00
Paulus Schoutsen
d2dd82c0ec Use new LL command (#1702) 2018-10-02 14:16:52 +02:00
Paulus Schoutsen
e1738b625d Fix link color for Hass.io update panel (#1721) 2018-10-02 14:16:35 +02:00
William Scanlon
7aa37183b6 Convert climate water heaters to new water_heaters component (#1661)
* Water heater support

* Attempt to fix lint errors.

* Fixed another lint issue
2018-10-02 14:16:19 +02:00
Jason Hu
c91b28a850 L10N config-entries (#1718)
* L10N config-entries

* Lint

* Address review comment

* Add back parentheses
2018-10-02 13:27:18 +02:00
Adam Mills
70225c1a18 Expose state trigger For configuration in editor (#1723) 2018-10-02 13:26:56 +02:00
Jason Hu
3d9d7d899d Fix zero degree in weather card (#1720)
* Fix zero degree display in weather card

* Fix zero degree display in weather more-info dialog
2018-10-01 13:30:48 +02:00
Otto Winter
f0619c7d13 Add pressure sensor device class (#1713) 2018-10-01 12:32:03 +02:00
Jason Hu
305fa84d38 Apply user language preference on datetime formatting (#1719) 2018-10-01 12:08:21 +02:00
Jason Hu
edf0e2bedb Add l10n suppor for profile panel (#1717)
* L10N support for profile panel and mfa module

* L10N support for mfa setup flow

* Lint

* Lint

* Lint
2018-10-01 12:02:41 +02:00
Anders Melchiorsen
8be5561d19 Remove turn_off from brightness slider (#1715) 2018-10-01 10:56:08 +02:00
Paulus Schoutsen
f11ca53282 Version bump to 20180927.0 2018-09-27 23:03:17 +02:00
Paulus Schoutsen
2c25d6cc0a Update translations 2018-09-27 23:03:02 +02:00
Paulus Schoutsen
db6ab4d8ec Update Z-Wave icon (#1711) 2018-09-27 23:02:22 +02:00
Jerad Meisner
3961eff372 Extend paper-slider to fix rounding issue. (#1709) 2018-09-27 10:06:56 +02:00
Charles Garwood
458a7827f9 Fix for content appearing behind header in hassio and config panels (#1708)
* Call iron-resize on route change

* Add EventsMixin to hassio-main
2018-09-26 20:37:03 +02:00
Paulus Schoutsen
68d1c77a79 Bump version to 20180926.0 2018-09-26 11:10:46 +02:00
Paulus Schoutsen
aa97e30d51 Add card for entities without devices (#1706)
* Add card for entities without devices

* Better empty check
2018-09-26 11:09:33 +02:00
Paulus Schoutsen
9027d7d391 Update translations 2018-09-26 10:57:56 +02:00
Paulus Schoutsen
974fd5de0f Allow description when creating entry (#1704)
* Allow description when creating entry

* Lint
2018-09-25 16:32:45 +02:00
Paulus Schoutsen
f9d28fbf83 Add alert icon" (#1703) 2018-09-25 14:42:23 +02:00
Paulus Schoutsen
b944089087 Version bump 20180924.0 2018-09-24 11:46:26 +02:00
Paulus Schoutsen
7b6cf28459 Update translations 2018-09-24 11:46:10 +02:00
Paulus Schoutsen
be91688efb Add link to release notes (#1694) 2018-09-24 11:05:23 +02:00
Paulus Schoutsen
a5d47231aa Fix text color for system panel (#1695) 2018-09-24 11:05:16 +02:00
Paulus Schoutsen
01e833a399 Fix ha-paper-slider (#1700) 2018-09-24 11:05:03 +02:00
Charles Garwood
c363ba8056 Fix more-info graph when expanded (#1696) 2018-09-24 10:01:40 +02:00
schumpeter2
7cec39ba6c Fix more-info dialog call for groups of entities having a common domain (#1698) 2018-09-24 09:58:25 +02:00
PhracturedBlue
3f15cbd2bd Add support for multiple separate mailboxes (#1660) 2018-09-21 11:56:30 +02:00
Paulus Schoutsen
3235d33463 Add firmware 2018-09-21 10:41:25 +02:00
Paulus Schoutsen
140597c7f8 Minor CSS Fixes 2018-09-21 10:00:03 +02:00
Paulus Schoutsen
e1407a7d73 Use human readable description if possible (#1688)
* Use human readable description if possible

* lint
2018-09-21 09:20:07 +02:00
Paulus Schoutsen
03525c010f Allow toggling cloud integrations (#1690) 2018-09-21 09:02:24 +02:00
Paulus Schoutsen
8dc202af92 Version bump to 20180920.0 2018-09-20 10:53:41 +02:00
Paulus Schoutsen
369977f8f3 Update translations 2018-09-20 10:52:56 +02:00
randellhodges
7f8c092dfc Normalize more-info bottom padding (#1682) 2018-09-20 10:20:12 +02:00
randellhodges
d517cad6e6 fixed weather-lightning icon (#1684) 2018-09-20 10:19:04 +02:00
Paulus Schoutsen
62a68890d3 Show sub info (#1685)
* Show sub info

* Fix observer
2018-09-20 10:18:39 +02:00
Paulus Schoutsen
3d8a8cc77b Fix minifier (#1683) 2018-09-20 00:08:25 +02:00
Paulus Schoutsen
55dc35a8fc Update version to 20180919.0 2018-09-19 15:16:35 +02:00
Paulus Schoutsen
82e49a5e44 Update translations 2018-09-19 15:16:14 +02:00
Paulus Schoutsen
17ac6f96a0 Update deps (#1678)
* Update deps

* Lint

* Fix lint
2018-09-19 15:15:16 +02:00
Pascal Vizeli
085db3e0a6 Fix URL for nabucasa page (#1677) 2018-09-19 14:59:59 +02:00
Paulus Schoutsen
348bebc417 Update material design sidebar (#1676) 2018-09-19 14:59:48 +02:00
Paulus Schoutsen
15d21cc673 Fix miniy fail (#1674) 2018-09-19 11:32:24 +02:00
Paulus Schoutsen
7e0ff14f28 Merge overview into integrations (#1672)
* Merge overview into integrations

* Lint
2018-09-19 11:11:00 +02:00
Charles Garwood
67d09e8b3d Add loaded components popup to dev-info (#1666)
* Add loaded components popup to dev-info

* Change dialog handling
2018-09-18 14:54:37 +02:00
randellhodges
ce3b53a920 Image aspect ratio (#1665)
* Allow user to specify an aspect ratio for various images

* added a comment on what is supported

* fixed typo

* Fixed lint and test errors
2018-09-17 21:16:00 +02:00
Paulus Schoutsen
a32809e14b Update padding checkbox 2018-09-17 17:23:56 +02:00
Paulus Schoutsen
1d8c515da2 Bump to 20180917.0 2018-09-17 14:17:08 +02:00
Paulus Schoutsen
81e0f1a025 Update translations 2018-09-17 14:16:47 +02:00
Paulus Schoutsen
c593e2789c Add basic overview page (#1668)
* Add basic overview page

* Add empty state

* Show hub devices

* Add more info to config entries page

* Lint
2018-09-17 14:11:07 +02:00
cdce8p
650d2d7a47 Lovelace Custom ui fallback (#1670)
* Custom ui elements fallback to default instead of error

* Lint

* Changed fallback to timeout
2018-09-17 14:06:17 +02:00
Paulus Schoutsen
2665c86683 Show entities under configured integrations (#1663) 2018-09-17 10:00:21 +02:00
Jerad Meisner
8b262f3424 Added entity row for media players. (#1495)
* Added entity row for media players.

* Use artist:track/series:episode for music/tvshow.

* Add controls

* Comments

* Fixes

* Fixes for off states. Added gallery demo.

* Resolve conflicts. Change to use template extension points.

* Fixes
2018-09-17 09:58:43 +02:00
Jerad Meisner
5187f3b84f Get persistent_notifications for lovelace from websocket. (#1649)
* Get persistent_notifications for lovelace from websocket.

* Only fetch notifications on event.

* Use collection for notifications.
2018-09-17 09:53:14 +02:00
Charles Garwood
443e083a79 Add Z-Wave Entity Information/more-info button (#1664)
* Add Entity Info button

* Cleanup
2018-09-17 09:43:13 +02:00
Paulus Schoutsen
6c262c20ce Handle defaults, required and optional fields (#1662)
* Handle defaults, required and optional fields

* Lint
2018-09-17 09:42:43 +02:00
Paulus Schoutsen
cfbf2903c1 Version bump to 20180916.0 2018-09-16 21:20:49 +02:00
Paulus Schoutsen
19b8ff7d9f Update translations 2018-09-16 21:20:24 +02:00
Paulus Schoutsen
ec6ffd2115 Update text 2018-09-16 21:19:58 +02:00
Paulus Schoutsen
433b1e2979 Fix translation 2018-09-12 15:30:33 +02:00
Paulus Schoutsen
bd3d079dfb Version bump to 20180912.0 2018-09-12 13:13:49 +02:00
Paulus Schoutsen
fe776191b7 Update translations 2018-09-12 13:13:30 +02:00
Paulus Schoutsen
c546d8787d Add last used to token on profile page (#1659) 2018-09-12 13:12:26 +02:00
Jason Hu
a672b84b88 Disable delete icon if token is current used one (#1658) 2018-09-12 09:50:12 +02:00
Paulus Schoutsen
e3a137c675 Version bump to 20180911.0 2018-09-11 21:35:28 +02:00
Paulus Schoutsen
10aa99abdc Update translations 2018-09-11 21:35:08 +02:00
Paulus Schoutsen
34567d451f Add UI for tokens (#1656)
* Add UI for tokens

* Update strings

* Update text

* Update text
2018-09-11 21:29:40 +02:00
PhracturedBlue
494e3dc62c Fix authorization and display issues in mailbox view (#1610)
* Mailbox: Fix authorization issues.  Remove backdrop

* Fix linting issues

* Use HA Dialog system.  Fix authorization

* Add back missing backdrop

* Linting errors

* Use callApi.  Add error checking and spinner

* linting error

* more linting errors

* minor requested fixes

* Use let/const.  Fix lint issues

* Remove blob test that can never fail

* More let vs var fixes

* More minor requested fixes

* Rework code to use fetchWithAuth

* Async tweaks

* Lint

* Fix onboarding

* Add credentials for onboarding

* Lint
2018-09-11 11:33:57 +02:00
Paulus Schoutsen
0997274f29 Update external auth (#1655)
* Update external auth

* Lint
2018-09-11 10:24:01 +02:00
cdce8p
76161329b6 Add lovelace template extension points (#1653) 2018-09-10 23:15:29 +02:00
John Arild Berentsen
8505750958 Load ozw-log in new window, and add tail-like button. (#1652)
* Load log in new window, and add tail

* avoid duplicate code
2018-09-10 21:53:16 +02:00
Paulus Schoutsen
4077105db1 Version bump to 20180910.0 2018-09-10 13:28:51 +02:00
Paulus Schoutsen
3f31d83a55 Update translations 2018-09-10 13:28:33 +02:00
Paulus Schoutsen
d729e3c567 Update HAWS to 3.1.2 2018-09-10 13:25:50 +02:00
Paulus Schoutsen
9af75f9a43 Prevent changing domain entity ID (#1650) 2018-09-10 13:14:21 +02:00
Alessandro Staniscia
d32d334a2e Review Docker management (#1113)
* Review Docker management ( linked with #934 )

*  fix comment by @balloob

* Explicit remove of  package-lock.json

* moved on feature branch, merge docker scripts, added documetation

* Used alphine as requested by @balloob on https://github.com/home-assistant/home-assistant-polymer/pull/947 and followed the @mcspr comment https://github.com/home-assistant/home-assistant-polymer/issues/934

* Remove package-lock from gitignore, we don't use npm

* Update for new build instructions
2018-09-10 11:58:18 +02:00
Charles Garwood
94006a843c ZWave Panel Updates (#1647)
* Add padding to zwave log text

* Replace entity dropdown with actual entity_id

* Add Node Information button for more-info popup, and remove less-functional Node Info card.

* Fix indentation

* Address review comments

* Fix lint/mixin

* Update comment
2018-09-10 10:16:10 +02:00
Jason Hu
4790590327 Try to resolve workbox warning (#1648) 2018-09-10 10:15:20 +02:00
Charles Garwood
7cf7763e21 Fix body stream already read error (#1646) 2018-09-08 21:06:07 +02:00
Paulus Schoutsen
0d7979a72f Add revoke token to (external) auth (#1639)
* Add revoke token to external auth

* Lint

* Update to HAWS 3.1.1

* Fix constant
2018-09-07 20:37:06 +02:00
Paulus Schoutsen
300425e698 Redirect to onboarding from auth page (#1640)
* Redirect to onboarding from auth page

* Remove left over trial code
2018-09-07 20:13:00 +02:00
Stephen Vanterpool
59010baf89 Fix the way calls are made over the javascript bridge (#1644)
* Fix the way calls are made over the javascript bridge

* Update external_auth.js
2018-09-07 20:12:52 +02:00
Paulus Schoutsen
47fcb122a2 Don't delete system generated user (#1638) 2018-09-07 19:41:06 +02:00
Paulus Schoutsen
bbb50b1397 Better handle auth (#1637)
* Better handle auth

* Lint
2018-09-07 19:40:56 +02:00
Paulus Schoutsen
ae8724d699 Compress using zopfli (#1636) 2018-09-05 11:41:03 +02:00
Paulus Schoutsen
2169f6979d Remove link to alexa web 2018-09-04 15:02:35 +02:00
Paulus Schoutsen
9cc577e9c7 Add external auth (#1621)
* Add external auth

* Lint

* Warn when external auth not present
2018-09-03 09:00:39 -07:00
Paulus Schoutsen
6ead58f62f Version bump to 20180903.0 2018-09-03 13:17:04 +02:00
Paulus Schoutsen
ec3118227c Update translations 2018-09-03 13:16:45 +02:00
Paulus Schoutsen
0d3d9bc78a Upgrade MDI icons (#1630) 2018-09-03 13:07:58 +02:00
Jason Hu
e16b3db0d4 Ask "save to login" after hassConnected (#1631) 2018-09-03 13:07:34 +02:00
Timmo
cdab874b5b Autocapitalization of username field (#1627)
* 🔨 fix capitalization of username field

* 🔨 change words to on
2018-09-03 13:06:15 +02:00
Paulus Schoutsen
bf40995b16 Show an error when invalid client id or redirect uri (#1620) 2018-09-02 10:29:38 -07:00
Paulus Schoutsen
68b3a4fbb7 Version bump to 20180831.0 2018-08-31 12:45:59 +02:00
Paulus Schoutsen
c38bfa1101 Update translations 2018-08-31 12:45:42 +02:00
Jerad Meisner
af7a85eeb7 Force line chart for climate state history. (#1617)
* Force line chart for climate state history.

* Simplify climate check
2018-08-31 12:44:07 +02:00
Paulus Schoutsen
2bd5dc21a8 Fix refresh user (#1618)
* Fix refresh user

* Lint
2018-08-31 12:28:32 +02:00
Paulus Schoutsen
18a151c8e8 Fix Safari Profile page (#1619) 2018-08-31 11:17:57 +02:00
Paulus Schoutsen
da19a1a9c6 Fix header for glance cards 2018-08-31 11:15:06 +02:00
Paulus Schoutsen
45cdb5a3e4 Use new version of HAWS (#1612)
* Use new version of HAWS

* Fix init page

* Lint

* Fix tests

* Update gitignore

* Clear old tokens, use new key to store
2018-08-31 09:45:58 +02:00
Paulus Schoutsen
ab19dbc35e Version bump to 20180829.1 2018-08-29 22:49:34 +02:00
Paulus Schoutsen
6a443734a1 Update translations 2018-08-29 22:49:21 +02:00
Jason Hu
f0251d3056 Fix for login flow switch (#1609)
* Fix for login flow switch

* Switch flow shall clear step data
2018-08-29 22:48:32 +02:00
Paulus Schoutsen
31127ccf29 Version bump to 20180829.0 2018-08-29 10:23:27 +02:00
Paulus Schoutsen
b97e055b39 Update translations 2018-08-29 10:22:57 +02:00
Jason Hu
f4ce1ee0fa Add some translation for login flow (#1608)
* Add some translation for login flow

* Fix typo
2018-08-29 10:18:55 +02:00
PhracturedBlue
2a29311ca5 Lovelace: Don't show badge entities in unused list (#1607) 2018-08-28 20:34:12 +02:00
Paulus Schoutsen
8cfd7ee170 Version bump to 20180827.0 2018-08-27 22:20:31 +02:00
Paulus Schoutsen
59a8354a7f Update translations 2018-08-27 22:20:17 +02:00
Paulus Schoutsen
f443942e03 Authorize onboarding (#1603)
* Tweak onboarding + authorize

* Authorize/Onboarding pimp

* More tweaks

* Comments
2018-08-27 22:10:15 +02:00
Alok Saboo
772208ba22 Fixed typo (#1604) 2018-08-27 21:50:14 +02:00
Paulus Schoutsen
e46a1be5d7 Center svg in markdown 2018-08-26 22:00:57 +02:00
Paulus Schoutsen
d295a9d0e4 Version bump to 20180826.0 2018-08-26 21:24:03 +02:00
Paulus Schoutsen
f0bf34073b Update translations 2018-08-26 21:23:25 +02:00
Jason Hu
73098d106d disableXssFilter ==> allowSvg (#1600)
* disableXssFilter ==> allowSvg

* Move allowSvg patch to _render()

* Add comment
2018-08-26 11:50:37 -07:00
Jason Hu
c8ea4cd85e Disable XSS filter in flow step desc markdown (#1599) 2018-08-26 12:44:50 +02:00
Paulus Schoutsen
f64ddf46e2 Update frontend to 20180825.0 2018-08-25 11:13:29 +02:00
Paulus Schoutsen
5e6e3dd793 Update translations 2018-08-25 11:13:14 +02:00
Paulus Schoutsen
13ff59ec89 Fix hass icons 2018-08-24 21:59:53 +02:00
Jason Hu
7cc3fc728b Add ha-mfa-modules-card and setup flow (#1590)
* Add ha-mfa-modules-card and setup flow

* Add hass-refresh-current-user event

* Address code review comment
2018-08-24 19:35:33 +02:00
Glenn Waters
ec79e12bf3 Fix for missing 'Disarm' button (#1549)
* Fix for missing 'Disarm' button

Disarm button does not show when in `arming` and `disarming` state.

* Update more-info-alarm_control_panel.js

Disarm button visible on arming state.
2018-08-24 16:57:04 +02:00
Paulus Schoutsen
d38b989c02 Version bump to 20180824.0 2018-08-24 15:50:17 +02:00
Paulus Schoutsen
f9a629bf8d Update translations 2018-08-24 15:49:58 +02:00
Jerad Meisner
02edbce460 Notification drawer (#1536)
* Notification drawer MVP concept

* Localization

* Don't use events.
2018-08-24 15:46:58 +02:00
Jerad Meisner
b9f84d012f Add default_zoom option to map card. (#1592) 2018-08-24 10:27:36 +02:00
Jerad Meisner
421478bb49 Hide toolbar on scroll. (#1595) 2018-08-24 10:25:58 +02:00
Jerad Meisner
cde106bd77 Fix custom icon colors in entities and glance cards. (#1587)
* Fix custom icon colors in entities and glance cards.

* Use ha-icon directly in state-badge.
2018-08-23 22:24:21 +02:00
John Arild Berentsen
144f00e2cc reset entity properties on 404 (#1591) 2018-08-23 22:23:00 +02:00
squidwardy
74185f0beb Add support for JS modules in custom panels. (#1588)
* Added support for JS modules in custom panels.

* Update load-custom-panel.js

* Corrected syntax

* Force push

* Fixed EOL

* Delete index.html

* Fixed tempA href missing module_url name
2018-08-23 11:14:47 +02:00
Paulus Schoutsen
09f238162e Cleanup (#1575) 2018-08-21 08:59:54 +02:00
Jerad Meisner
13ece650bc Fix input_number flexbox. (#1586) 2018-08-21 08:59:39 +02:00
Paulus Schoutsen
cbef262805 Version bump to 20180820.0 2018-08-20 11:50:51 +02:00
Paulus Schoutsen
cbdd641d5f Update translations 2018-08-20 11:50:33 +02:00
Paulus Schoutsen
f435c38aa5 Upgrade websocket lib to 2.1 (#1583) 2018-08-20 11:49:24 +02:00
Paulus Schoutsen
4e135681bc Fix push notifications (#1585) 2018-08-20 11:49:13 +02:00
Paulus Schoutsen
8da969455b Add period to push notif toggle description 2018-08-19 18:51:24 +02:00
Paulus Schoutsen
f4ebf77b36 bump frontend to 20180818.0 2018-08-18 11:11:58 +02:00
Paulus Schoutsen
bb3af18e46 Only ask to save login with new auth (#1581) 2018-08-18 11:11:17 +02:00
Jerad Meisner
c025df2974 Use core temperature units for climate entities. (#1580) 2018-08-17 09:29:42 +02:00
Paulus Schoutsen
5cf5e6ec6c Version bump to 20180816.1 2018-08-16 22:14:26 +02:00
Paulus Schoutsen
6236252a90 Fix editor 2018-08-16 22:14:06 +02:00
Paulus Schoutsen
9f71d9331c Fix automation editor safari (#1576)
* Use ha-textarea

* Lower Safari requirement to 10.3

* Lint
2018-08-16 21:49:35 +02:00
John Arild Berentsen
488e6d09ca Fix Ascii not updating properly and code length limited to current code length (#1577) 2018-08-16 20:49:19 +02:00
Paulus Schoutsen
00b1fbe091 Version bump to 20180816.0 2018-08-16 14:21:06 +02:00
Paulus Schoutsen
c1ea1bb54f Update translations 2018-08-16 14:20:54 +02:00
John Arild Berentsen
49a5d922fc Zwcp small fixes, style, refactor etc. (#1570)
* Fix promise errors

* Style, fixes and refactors

* Missed some files

* Short key
2018-08-16 14:18:50 +02:00
Paulus Schoutsen
a960084438 Include ES5 version of hass-icons (#1574) 2018-08-16 13:39:43 +02:00
Jason Hu
8ae44e6f7f Fix stateObj.attributes.entity_id null issue (#1572) 2018-08-16 10:16:34 +02:00
Paulus Schoutsen
95ea220936 Fix build 2018-08-15 12:30:45 +02:00
Paulus Schoutsen
7ffdb3ddc7 Use ha toast for frontend notification 2018-08-15 10:48:23 +02:00
Jason Hunter
decbbc9acd Media Player: Standardize computePlaybackControlIcon (#1571)
* standardize computePlaybackControlIcon and add play/pause icon for UNKNOWN state

* fix linting errors
2018-08-15 10:45:36 +02:00
Paulus Schoutsen
496e05651e Version bump to 20180813.0 2018-08-13 21:24:42 +02:00
Paulus Schoutsen
efd36bf207 Update translations 2018-08-13 21:24:42 +02:00
Paulus Schoutsen
283668ef18 Fix disconnected notification (#1569) 2018-08-13 21:22:23 +02:00
Paulus Schoutsen
310299367b Ask to store auth (#1568)
* Ask to store auth

* Reorg auth
2018-08-13 21:10:39 +02:00
Paulus Schoutsen
63c7c55843 Cleanups (#1566)
* Cleanup core.js

* Add ha-toast

* Lint

* Remove unused import
2018-08-13 15:48:54 +02:00
Jerad Meisner
4bc83b01d3 Remove _hiddenState method. (#1557)
* Remove _hiddenState method since it always has the same result.

* Hide state when row element is narrow. Add input_number row to gallery.
2018-08-13 09:42:09 +02:00
Paulus Schoutsen
743c3ab784 update version to 20180811.0 2018-08-11 08:55:10 +02:00
Paulus Schoutsen
98d2b0b889 Update translations 2018-08-11 08:54:55 +02:00
Paulus Schoutsen
c39417c93d Move user settings to profile page (#1560) 2018-08-11 08:46:16 +02:00
Paulus Schoutsen
1b2b62f04c Reorg root (#1559)
* Extract element from entrypoint

* Reorg root

* Extract more

* Lint

* Extract connection

* Extract notification

* Lint

* Also split out more info dialog

* Consolidate dynamic element creation
2018-08-11 08:45:11 +02:00
Jerad Meisner
1a31855fc8 Right-align climate row state display. (#1558) 2018-08-10 08:22:58 +02:00
Paulus Schoutsen
f4e92dedff Fix links to dev tools
Fixes #1556
2018-08-09 23:13:33 +02:00
John Arild Berentsen
85d6be64cc Remove zwave rename functions (#1553) 2018-08-09 11:47:38 +02:00
Jason Hu
033e058745 Fix access token expires issue (#1554) 2018-08-09 11:17:40 +02:00
Paulus Schoutsen
1cbe0b7b9f Don't put components in entrypoint (#1548)
* Don't put components in entrypoint

* Remove extra deps
2018-08-07 23:11:57 +02:00
Paulus Schoutsen
22433d1a39 Update translations 2018-08-07 09:40:53 +02:00
John Arild Berentsen
e048060c72 Fix wrong targetnode and nonupdating othergroupnodes (#1541) 2018-08-06 10:40:31 +02:00
Paulus Schoutsen
60d04b5c58 Bump version to 20180804.0 2018-08-04 15:16:42 +02:00
Paulus Schoutsen
0a991ecdf8 Update translations" 2018-08-04 15:16:28 +02:00
Paulus Schoutsen
a9f29a3151 Fix custom panel include (#1539) 2018-08-04 15:15:44 +02:00
Jason Hu
50f417a7e2 Fix dropdown in new login form (#1538) 2018-08-04 15:05:44 +02:00
Paulus Schoutsen
d69492988a Version bump to 20180803.0 2018-08-03 13:37:05 +02:00
Paulus Schoutsen
286fa14a30 Update translations 2018-08-03 13:36:52 +02:00
Paulus Schoutsen
8fa9b15fbe Fix margin gallery 2018-08-03 13:31:11 +02:00
Marius
b432324159 Fixed conditional card state on 1st render (#1537)
* Fixed conditional card state on 1st render

* Moved method to correct location
2018-08-03 13:03:28 +02:00
Conrad Juhl Andersen
255ea41648 Update state-card and more-info card to support new methods. (#1532)
* Update state-card and more-info card to support new start and pause methods

* Revert some changes

* fixed checking the same thing twice
2018-08-03 11:23:28 +02:00
Jason Hu
6bcfdfaaf8 Support for voluptuous-serialize 2.0.0 (#1529) 2018-08-02 17:03:26 +01:00
Paulus Schoutsen
2dada41791 Version bump to 20180802.0 2018-08-02 14:18:11 +02:00
Paulus Schoutsen
4b5152a348 Update translations 2018-08-02 14:17:55 +02:00
Paulus Schoutsen
c537a8d389 Use correct keys for localization. (#1533) 2018-08-02 13:17:41 +01:00
Jerad Meisner
716e505c88 Fixed passing service_data to call-service-button. (#1531) 2018-08-02 13:12:24 +01:00
Alexei Chetroi
cc652a9476 allow 'same-origin' credentials for fetch() (#1530) 2018-08-02 13:11:53 +01:00
Conrad Juhl Andersen
db310646b7 Vacuum: Added support for STATES (#1497)
* Changed vacuum state-card

* Stupid copy/paste error

* Added support for vacuum in lovelace

* Implement backwards compat.

* Remove lovelace changes

* Added new lovelace

* Updated lovelace code to reflect changes in entity

* Hopefully fix me being bad at git?

* even more fixes

* remove lovelace for now

* Fixed styling errors

* fix styling

* Fallback to toggle

* Fixed errors

* 🐫

* Updated ui

* fix lint error

* Added error to translation

* Added translations

* Removed a comma

* Added the last translations

* Support translation for actions

* Styling

* abcd, removed states from ui.card.vacuum, and moved actions to ui.card.vacuum.actions

* abcd and use this._interceptable

* Removed unused import

* _computeLabel(state, interceptable)
2018-07-27 16:03:27 +02:00
Paulus Schoutsen
a8ce5e3e25 Add profile badge to sidebar header (#1525)
* Add profile badge to sidebar header

* Lint

* Update ha-sidebar.js

* Address comments
2018-07-27 09:12:14 +02:00
c727
7ca7d3e12c Add conditional card for Lovelace (#1524)
* Add conditional card for Lovelace

* Make it work

* Fix cardSize

* Lint

* Check if visible in cardSize

* Fix

* Add demo, remove visible in cardSize

* Check if undefined
2018-07-27 08:37:09 +02:00
Jerad Meisner
be7fb50f8c Hide change password card for non-homeassistant auth_providers. (#1526) 2018-07-27 08:27:59 +02:00
c727
fdbaa3908a Try to fix history graph for lovelace (#1523)
* Try to fix history graph for lovelace

* Reset interval

* Sort

* Lint
2018-07-26 20:16:23 +02:00
Paulus Schoutsen
ec9a259fc0 Version bump to 20180726.0 2018-07-26 09:31:52 +02:00
Paulus Schoutsen
1287f98357 Update translations 2018-07-26 09:31:38 +02:00
Paulus Schoutsen
6cbca6d88a Use webpack plugin to generate HTML (#1521)
* Use webpack plugin to generate HTML

* Generate index.html

* Remove unused packages
2018-07-26 09:30:03 +02:00
quthla
e458cf1388 Fix name styling (#1522)
* Fix name styling

* Update hui-glance-card.js

* Demo

* Update demo-hui-glance-card.js

* Update hui-glance-card.js
2018-07-26 00:56:25 +02:00
c727
36ba37c59c Fix margin for row action buttons (#1520)
* Fix margin for row action buttons

* Also cover controls
2018-07-25 21:13:37 +02:00
c727
1b18315e96 Add icon support for picture glance (#1518)
* Add icon support for picture glance

* Add gallery demo

* Replace icon-button with ha-icon
2018-07-25 11:02:25 +02:00
Jerad Meisner
690252a6ba Added row entity for climate entities. (#1494)
* Added row entity for climate entities.

* Revert to old climate state style.

* Added climate entity to entities-card in gallery.
2018-07-25 10:40:21 +02:00
c727
72390aaadc Add support for CSS imports (#1517)
* Add support for CSS imports

* Abc
2018-07-24 20:31:15 +02:00
c727
7b579c8e7a Fix header toggle for entity objects (#1514)
* Fix header toggle for entity objects

* Finish

* Lint
2018-07-24 16:02:52 +02:00
quthla
b32a6d58f3 Allow empty names (#1515) 2018-07-24 16:01:41 +02:00
Paulus Schoutsen
7953d960b6 Version bump to 20180724.0 2018-07-24 14:13:30 +02:00
Paulus Schoutsen
e9e7a3cdf3 Update translations 2018-07-24 14:13:08 +02:00
Paulus Schoutsen
f7d9aecf47 Allow changing entity id (#1508)
* Allow changing entity id

* _entityId

* Use set properties
2018-07-24 14:07:40 +02:00
c727
201959841c Hide name or state in picture entity (#1511)
* Hide name or state in picture entity

* Lint
2018-07-24 13:54:54 +02:00
c727
5e91fbc54f Glance: replace turn-on with call-service (#1510)
* Glance: replace turn-on with call-service

* Fix demo

* Lint
2018-07-24 13:50:01 +02:00
c727
d1d248ab87 Add call-service row element (#1513) 2018-07-24 13:49:12 +02:00
c727
00bee73bf1 Fix toggle if state = unavailable (#1512) 2018-07-24 10:06:54 +02:00
c727
c375e5900b Fix toggle-able for group row elements (#1507) 2018-07-24 08:42:33 +02:00
c727
dcc47b6b83 Add prefix and suffix for state-label (#1509)
* Add prefix and suffix for state-label

* Feedback
2018-07-24 08:36:09 +02:00
Paulus Schoutsen
b589412fdd More info (#1500)
* Add more info

* Lint

* Minor cleanup

* Address comments
2018-07-23 22:40:42 +02:00
c727
a899fb1df8 Use local and optimized images in gallery (#1506) 2018-07-23 15:40:58 +02:00
John Arild Berentsen
0aee48cb2c Add ability to set Zwave protection commandclass (#1433)
* Add protection selector

* Review changes

* Naming

* forgot one literal

* Further reveiw changes
2018-07-23 15:31:44 +02:00
Paulus Schoutsen
d30bf6d566 Tweak divider example (#1505) 2018-07-23 14:46:57 +02:00
c727
22ed241286 Add row divider for entities card (#1503)
* Add row divider for entities card

* Add gallery demo

* Change hr to div, less attributes needed
2018-07-23 10:02:33 +02:00
c727
44ab96d590 Entities card: special row types, weblink (#1493)
* Add special row-cards: weblink

* Fix binding

* Fix yaml

* Lint

* Feedback

* Fix build

* Lint

* Lint
2018-07-23 03:57:42 +02:00
Alok Saboo
af4df647cc Updated picture-elements demo card (#1501)
* Update floorplan image

* Add image elements

* Updated card to use different elements

* Change light name

* Light name

* Updated path
2018-07-22 20:31:05 +02:00
Paulus Schoutsen
bdf26bbccd Tweaks (#1489)
* Tweaks

* Lint

* No need for copy plugin

* Allow handling more complex service calls

* Missed a state

* Add locks

* Lint

* Add cover entity

* Make generic entity constructor

* Light to handle homeassistant.X services

* Lint

* Fix translations

* final tweaks
2018-07-22 11:41:56 +02:00
Paulus Schoutsen
3b2d4de313 Add example to show single entity conditionally (#1498) 2018-07-22 10:55:13 +02:00
Alok Saboo
aaea698a6c Added basic picture-elements demo card (#1496)
* Added basic picture-elements card

* Cleanup

* Added title

* Remoted comment
2018-07-22 09:53:51 +02:00
c727
97f548a9f1 Custom icons for row cards and glance (#1492)
* Custom icons for row cards

* Remove var fallback

* Add icon support to glance

* Fix glance
2018-07-21 09:04:45 +02:00
c727
6b1d04584e Improve CSS for entity rows (#1491) 2018-07-21 03:10:42 +02:00
Jerad Meisner
5d7e4322eb Automation and vacuum rows toggleable. (#1490) 2018-07-21 01:42:24 +02:00
Nathan Knotts
bc71019573 ha-cover-controls: handle opening/closing states (#1485)
* ha-cover-controls: handle opening/closing states

* added missing semi-colons

* fixed entityObj reference
2018-07-20 23:00:38 +02:00
c727
f42bddd447 Add more hass data to gallery (#1487)
* Add more hass data to gallery

* Fix media player images
2018-07-20 22:13:34 +02:00
Paulus Schoutsen
93b1e29876 Bump version to 20180720.0 2018-07-20 12:27:06 +02:00
Paulus Schoutsen
388c2c5db4 Update translations 2018-07-20 12:26:51 +02:00
Paulus Schoutsen
3e60083633 Add js-yaml to yarn 2018-07-20 12:24:16 +02:00
Jerad Meisner
06532def08 Add custom elements to picture-elements. (#1482) 2018-07-20 12:04:11 +02:00
Jason Hu
abf85ae19b Only send auth/current_user if new auth is enabled (#1483) 2018-07-20 12:02:30 +02:00
Paulus Schoutsen
9634a13dc2 Fix static assets (#1484) 2018-07-20 11:42:07 +02:00
c727
a78aba5f50 Add more gallery cards (#1481)
* Add more gallery cards

* Lint
2018-07-20 03:22:16 +02:00
Paulus Schoutsen
1b039aee50 tweak demo cards layout (#1479)
* tweak demo cards layout

* Lint
2018-07-19 23:44:12 +02:00
c727
54860d7762 Add more features to gallery (#1477)
* Add more features to gallery

* Feedback

* Fix margin

* Use array-style config

* Split into DemoCards and DemoCard

* Move padding

* Use min-height
2018-07-19 22:57:51 +02:00
Paulus Schoutsen
5c74e31629 Add some styling to the gallery (#1478) 2018-07-19 22:19:10 +02:00
Paulus Schoutsen
61d3d446f4 picture glance: better handle if no title (#1474)
* Better handle if no title

* Simplify code

* Arrays in ifs

* Remove unused method

* Always render the middle div

* Always show both entity divs
2018-07-19 21:18:24 +02:00
Paulus Schoutsen
ec54036f1e Tweak readme 2018-07-19 21:12:59 +02:00
Paulus Schoutsen
a5befbe153 Add more demos (#1476) 2018-07-19 17:00:18 +02:00
Paulus Schoutsen
f952d9c307 Fix build scripts for first run 2018-07-19 15:45:44 +02:00
Paulus Schoutsen
68b94cd7c7 Remove bower.json 2018-07-19 15:27:56 +02:00
Paulus Schoutsen
56907fb922 Add gallery (#1475)
* Add gallery

* Add build script

* Lint

* Remove cache
2018-07-19 15:24:30 +02:00
Paulus Schoutsen
5cc6d20674 Version bump to 20180719.0 2018-07-19 10:51:56 +02:00
Paulus Schoutsen
da78dacca9 Update translations 2018-07-19 10:51:40 +02:00
Paulus Schoutsen
964c028c72 Tweaks to user flow (#1473)
* Tweaks to user flow

* Mobile layout

* Final tweaks
2018-07-19 10:51:00 +02:00
Jerad Meisner
708447b6f1 Added change password card to profile panel. (#1464)
* Added change password dialog to profile panel.

* Switch change password from dialog to card

* Restore current password verification.
2018-07-19 09:39:56 +02:00
Jason Hu
7e257f6ee9 Display Unnamed User if no name found in user object (#1469)
* Display Unnamed User if no name found in user object

* address review comment
2018-07-19 09:11:21 +02:00
c727
10d44db8e6 Allow views with badges and no cards (#1471) 2018-07-19 08:45:59 +02:00
c727
e84f5c683c Fix Lovelace docs URL #2 (#1470)
last PR was to false branch xD
2018-07-19 02:16:13 +02:00
Paulus Schoutsen
bfdde116e2 Version bump to 20180718.0 2018-07-18 17:28:45 +02:00
Paulus Schoutsen
51020d7e68 Update translations 2018-07-18 17:28:39 +02:00
c727
8c44e243e1 Separate row entity elements for Lovelace (#1461)
* Separate row entity elements for Lovelace

* Update

* Update

* Add fan

* Add support for last changed

* Feedback

* Feedback2

* Update

* Update

* Fix timer

* Update

* Lint
2018-07-18 17:25:13 +02:00
Paulus Schoutsen
9ab4158e0a Use callWS helper (#1465) 2018-07-18 17:13:53 +02:00
c727
4c3e039423 Use separate duration for relative time (#1463) 2018-07-18 09:50:31 +02:00
c727
7c5c5ea9b6 Use custom off states in picture glance (#1462) 2018-07-18 09:49:11 +02:00
Jerad Meisner
6db76c8ab4 Refactored element creation out of picture-elements class. (#1446)
* Refactored element creation out of picture-element class.

* Fix navigation element listener.

* Cleanup. Change service-icon -> icon.

* Fixes.

* More fixes.

* More fixes.

* Feedback

* More fixes.
2018-07-18 09:48:27 +02:00
Paulus Schoutsen
3f0824bd39 Version bump to 20180717.0 2018-07-17 10:56:18 +02:00
Paulus Schoutsen
e2c4695613 Add compat layer 2018-07-17 10:55:23 +02:00
Paulus Schoutsen
37678d99af Update translations 2018-07-17 10:06:19 +02:00
Paulus Schoutsen
90328cfc33 Add an onboarding flow (#1452)
* Add an onboarding flow

* Address comments
2018-07-17 10:05:27 +02:00
Paulus Schoutsen
84b0542fb6 Fix spacing picture glance (#1460) 2018-07-17 10:04:48 +02:00
Paulus Schoutsen
229d167f89 Add current user to hass object (#1451)
* Add current user to hass object

* Add enter key support to login form
2018-07-17 09:25:46 +02:00
c727
5c5a7e50da Remove capitalize from card heading (#1455)
fix: https://github.com/home-assistant/ui-schema/issues/107
2018-07-17 08:45:52 +02:00
c727
bac1c8f630 Make Glance column width configurable (#1456) 2018-07-17 08:44:01 +02:00
Marius
9c66d47afa Fixes picture-glance no longer compatible with entity-filter (#1448)
* fixes https://github.com/home-assistant/ui-schema/issues/101

* Updates based on feedback

* More updates from feedback

* Cleanup
2018-07-17 08:43:20 +02:00
Jason Hu
1f80769d9e Submit form when Enter pressed in new login form (#1459) 2018-07-17 08:38:40 +02:00
c727
8dcda2dae9 Fix translation for weather states (#1454)
we should rename the keys on lokalise before we merge this

fix: #1414
2018-07-17 00:34:46 +02:00
Jason Hu
348b284ba6 Check access token expires before we use it. (#1444)
* Check access token expires before we use it.If we found access token expires, we proactive call refresh token.So that we can avoid uncessary invalid auth error in backend.

* Move expires  calc to fetchToken() and refresToken()

* Address code review comment
2018-07-16 23:11:05 +02:00
Paulus Schoutsen
b5ff52febf Version bump to 20180716.0 2018-07-16 08:47:24 +02:00
Marius
832f4ba6cd Make custom cards work as panel (#1447)
* Make custom cards work as panel

* Fixed some errors and implemented suggestion from comments
2018-07-15 14:05:32 +02:00
Paulus Schoutsen
89f9589084 Version bump to 20180713.0 2018-07-13 15:33:00 +02:00
Paulus Schoutsen
ed0d0ab944 Update translations 2018-07-13 15:32:37 +02:00
Paulus Schoutsen
ed9c73429f Allow managing users (#1436)
* Allow managing users

* Address comments

* table -> card-content

* Don't close dialog on error
2018-07-13 15:31:22 +02:00
c727
c11cf53f96 Lovelace: add basic support for badges (#1443)
* Lovelace: add basic support for badges

* Lint

* Check in entityId exists in states

* Hide badges container if no badges

* setProperties

* lint
2018-07-13 13:42:34 +02:00
quthla
834528506a Override history names (#1405) 2018-07-13 12:12:50 +02:00
c727
f2c56a624b Glance card: hide name or state (#1442) 2018-07-12 13:56:25 +02:00
c727
6a35fc9eb5 Picture elements: add service-icon (#1439)
* Picture elements: add service-icon

* Default for servie_data

* Lint

* Remove file
2018-07-12 12:34:05 +02:00
c727
1b262f7cea Picture glance: introduce DOMAINS_TOGGLE (#1440)
* Picture glance: introduce DOMAINS_TOGGLE

* Use set instead of array
2018-07-12 11:58:11 +02:00
c727
c5fd32afac Glance: add toggle and turn_on as action (#1438)
* Glance: add toggle and turn_on as action

* Lint
2018-07-12 09:08:54 +02:00
Jerad Meisner
19e58c775e Add image type for picture-elements card. (#1428)
* Add image type for picture-elements.

* Rebased master. Move overflow rule to parent.

* Cleaned up click handler.
2018-07-12 08:56:53 +02:00
Paulus Schoutsen
c90a3dcdfd Version bump to 20180710.0 2018-07-10 11:58:39 +02:00
Jerad Meisner
5df758c0b2 Add configurable filter and state_filter to hui-image. (#1423)
* Add configurable filter and state_filter to hui-image.

* Rename state -> stateObj.

* Cleanup

* Remove unnecessary CSS

* Use placeholder for broken images.

* Update broken image
2018-07-10 11:37:46 +02:00
Jason Hu
77c65d43ae Add password field support to ha-form (#1418)
* Add password field support to ha-form

* Lint

* Load ha-iconset-svg
2018-07-10 11:20:11 +02:00
Paulus Schoutsen
dbb6a8e6d4 Fix when not using oauth (#1434) 2018-07-10 10:49:51 +02:00
Paulus Schoutsen
89ab6a7d5d Add release drafter 2018-07-10 10:21:24 +02:00
Paulus Schoutsen
c378eda17b Version bump to 20180709.0 2018-07-09 18:26:24 +02:00
Paulus Schoutsen
133d198e7c Make Lovelace filter card more robust (#1431)
* Make Lovelace filter card more robust

* Update hui-entity-filter-card.js
2018-07-09 18:25:00 +02:00
Paulus Schoutsen
2e4ddebcda Use IndieAuth for client ID (#1427)
* Use IndieAuth for client ID

* Lint
2018-07-09 18:24:49 +02:00
Jerad Meisner
13819937a7 Show more-info for media_players in picture-glance. (#1429)
* Show more-info for media-players in picture-glance.

* Cleanup
2018-07-09 18:21:47 +02:00
c727
b89ad9b217 Fix language detection for country codes (#1426)
* Fix language detection for country codes

navigator.languages = ["de-DE"],  navigator.languages = "de-DE" was detected as en before

* Use for each

* Use for of
2018-07-09 14:43:36 +02:00
Jerad Meisner
e51177b3c2 Fix picture-glance crash when state unavailable. (#1425)
* Fix picture-glance crash when state unavailable.

* Replace this.hass with hass, available check also for dialog-entities

* Lint
2018-07-08 23:59:16 +02:00
Jerad Meisner
bb7dc76996 Open more info for camera in picture-glance card. (#1424) 2018-07-08 19:30:11 +02:00
Paulus Schoutsen
274f8e1b64 Version bump to 20180708.0 2018-07-08 17:24:53 +02:00
Paulus Schoutsen
d1d3ff9013 Update translations 2018-07-08 17:24:36 +02:00
quthla
c39b6bb665 Fix Lovelace (#1420) 2018-07-08 17:19:55 +02:00
Paulus Schoutsen
52f2c29726 Cleanup the webpack config (#1417)
* Cleanup the webpack config

* Typo
2018-07-08 17:16:19 +02:00
c727
b0f29744bf Lovelace map: hide overflow, reset focus button (#1421)
* Lovelace map: hide overflow, reset focus button

* Increase margin for better clicking
2018-07-08 15:03:56 +02:00
c727
c17f390f58 State card lock (#1419)
* Add state-card-lock

* Cleanup

* Feedback

* Lovelace: Exclude covers and locks from header toggle
2018-07-08 03:24:22 +02:00
quthla
f58c612018 Lovelace custom ui (#1404)
* Lovelace custom ui

* Allow ForOf

* Move code
2018-07-07 21:04:11 +02:00
c727
d96c5f6bde Don't modify stateObj (#1410)
* Don't modify stateObj

* Lint
2018-07-07 13:25:06 +02:00
Jerad Meisner
e649d37c05 Love: Added map card (#1412)
* Added map card

* Prefer arrow functions.

* Fix lint errors.

* Extract Leaflet setup. Debounce events. Cleanup.

* Cleanup.

* Add disconnectedCallback. More cleanup.
2018-07-07 05:36:01 -04:00
Jerad Meisner
594c1d6615 Don't show more info for weblinks. (#1416) 2018-07-07 05:35:03 -04:00
c727
10009eea2e Lovelace: Style view backgroud (#1408)
* Lovelace: Style view backgroud

based on: #1403

fix: https://github.com/home-assistant/ui-schema/issues/30

```yaml
background: center / cover no-repeat url("https://images.pexels.com/photos/977736/pexels-photo-977736.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260")

background: radial-gradient(crimson, skyblue)

background: orange
```

* Reset background if not defined

* Simplify

* Lint

* Add global backround

* Fix backround in unused entities

* Lint
2018-07-06 15:12:43 -04:00
Hmmbob
cb60904912 Replace Fitbit Config Screenshot (#1411)
Fixes https://github.com/home-assistant/home-assistant/issues/15235
2018-07-06 15:10:01 -04:00
c727
ddd37f63a0 Remove line-height 0 from ifram card (#1413) 2018-07-06 02:25:17 +02:00
Jerad Meisner
d71a80c4f8 Love: Rework layout to use static sized view area (#1403)
* Rework view layout.

* Don't edit ha-app-layout

This reverts commit 7b32161

* User classList.toggle instead of attribute binding.

* Change view to a div.
2018-07-05 11:27:28 -04:00
c727
6b10eeb1e9 Hassio: Add button to change hostname (#1406)
* Hassio: Add button to change hostname

* Lint

* Lint
2018-07-04 22:49:29 -04:00
Paulus Schoutsen
e3d82f9e37 version bump to 20180704.0 2018-07-04 11:57:58 -04:00
c727
6739c88428 Add a button to show new entities (#1390)
* Add a button to show new entities

* Fix copy paste

* Test

* Update

* To-do: Menu CSS

* Set _curView to -1

* Lint

* Feedback

* Fix menu

* Feedback
2018-07-04 04:44:13 +02:00
Paulus Schoutsen
5b0ca026d5 version bump to 20180703.1 2018-07-03 14:51:34 -04:00
c727
42525ae1df Fix navigation path title (#1401) 2018-07-03 14:51:10 -04:00
Paulus Schoutsen
c201a9073f Fix opening menu triggers column change (#1400) 2018-07-03 14:47:36 -04:00
Paulus Schoutsen
ad4814dfad Use ha-icon when user can set icon (#1399) 2018-07-03 14:33:43 -04:00
Paulus Schoutsen
e5c900aec1 Use navigation_path for picture-elements navigation element 2018-07-03 11:13:51 -04:00
Paulus Schoutsen
6f8385afa7 20180703.0 2018-07-03 10:59:08 -04:00
Paulus Schoutsen
5cccf4836f Add navigation_path to picture-glance (#1397)
* Add navigation_path to picture-glance

* Lint
2018-07-03 10:57:26 -04:00
sbYm
d299166f2a Fix json detect (#1391)
* Fix json detect

Content-type is not always "application/json" when using nginx.    
eg: application/json; charset=utf-8

* Update hass-call-api.js

* Lint

* Lint 2
2018-07-03 10:17:15 -04:00
Jerad Meisner
c0ae7d50ad Replace camera-preview card with picture-entity card. (#1393) 2018-07-03 09:28:54 -04:00
c727
dc034038c0 P-Elements: Add title to navigation icon (#1395)
* P-Elements: Add title to navigation icon

...and removed computeDomain()

* Improve code
2018-07-03 05:51:37 +02:00
c727
536b1e7b73 Fix scrollbar issues in vertical stack card (#1394)
* Fix scrollbar issues in vertical stack card

* Update vstack
2018-07-03 05:51:13 +02:00
Paulus Schoutsen
20d6f6d530 Don't allow toggle if can't toggle. Allow hiding info (#1389)
* Don't allow toggle if can't toggle. Allow hiding info

* Allow tap_action: toggle

* cleanup

* Lint
2018-07-03 01:55:46 +02:00
Paulus Schoutsen
173cd8126c Picture Entity to use name instead of titles (#1388)
Entities have names, states have titles.
2018-07-02 22:39:23 +02:00
Paulus Schoutsen
e452384ecd Bump version to 20180702.1 2018-07-02 14:20:48 -04:00
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
25fddad446 Version bump to 20180702.0 2018-07-02 08:54:05 -04:00
Paulus Schoutsen
890dc0512b Update translations 2018-07-02 08:52:45 -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
Paulus Schoutsen
7bbe8dc2f3 Version bump to 20180701.0 2018-07-01 12:57:13 -04: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
c781163f6b Version bump to 20180629.1 2018-06-29 15:38:26 -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
a8063f3359 Version bump to 20180629.0 2018-06-29 11:05:41 -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 e0ccc1999a.
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
b55004d73b Bump version to 20180627.0 2018-06-27 14:20:48 -04:00
Paulus Schoutsen
3d18462ec0 Update translations 2018-06-27 14:20:43 -04: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
748b5a8e41 Version bump to 20180625.0 2018-06-25 16:00:46 -04:00
Paulus Schoutsen
8991c966d2 Update translations 2018-06-25 16:00:29 -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
Mattias Welponer
4c1feb313b Add HomematicIP Cloud Config Flow picture (#1306)
* Add HomematicIP config picture

* Reduce size

* Remove the border

* Picture trimmed now properly

* Wrong file, this one is small and has no transparent border

* Created config_flows and moved the picture
2018-06-25 14:21: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
c727
313a3dd2c9 Hassio: Fix error in store, remove asyn await (#1325) 2018-06-23 00:36:15 +02:00
Paulus Schoutsen
c579d7fed3 Version bump to 20180622.1 2018-06-22 12:44:31 -04:00
c727
c83184654e Hassio: New API for HassOS (#1319)
* Hassio: New API for HassOS

* Fix

* Use async await
2018-06-22 12:44:11 -04:00
Paulus Schoutsen
7e0be4a2f6 Version bump to 20180622.0 2018-06-22 10:22:58 -04:00
Paulus Schoutsen
53e698c757 Compatibility fix for custom panel (#1321)
* Compatibility fix for custom panel

* Lint
2018-06-22 10:17:06 -04:00
c727
8d5c862908 Love: Fix stateObj not in states error (#1322)
* Love: Fix stateObj not in states error

* Add ()

* Make it dynamic
2018-06-22 10:06:30 -04:00
Paulus Schoutsen
d5266c1c56 Version bump to 20180621.2 2018-06-21 17:35:08 -04:00
Paulus Schoutsen
44d64bc7ce Catch for no resources defined 2018-06-21 17:34:42 -04:00
Paulus Schoutsen
545af4c6d2 Version bump to 20180621.1 2018-06-21 17:14:47 -04:00
Paulus Schoutsen
501033df15 Allow specifying external resources (#1318)
* Allow specifying external resources

* Lint
2018-06-21 17:14:25 -04:00
c727
1f82934c93 Cleanup hui-markdown-card (#1316) 2018-06-21 23:12:31 +02:00
Paulus Schoutsen
9d22645e87 Fix wrapping in the entities card (#1317) 2018-06-21 17:10:07 -04:00
Paulus Schoutsen
b312533948 Version bump to 20180621.0 2018-06-21 14:56:32 -04:00
Paulus Schoutsen
77f623d519 Lovelace: Small reorg (#1315)
* Small reorg

* Add markdown card

* Tweak closeness
2018-06-21 14:46:54 -04:00
c727
8cebddcccc Love: Pimp filter card (#1314)
* Love: Pimp filter card

* Make it work

* Update

* getCardSize

* Import elements

* Lint

* Lint

* Remove this._cardSize
2018-06-21 13:57:19 -04:00
Paulus Schoutsen
75502bac6e Bump min version for latest to use async/await (#1312)
* Bump min version for latest to use async/await

* Use async functions

* Load async support for es5

* Lint
2018-06-21 13:57:01 -04:00
Paulus Schoutsen
18b52b53cb Upgrade deps (#1311)
* Update polyfills

* Upgrade deps
2018-06-21 10:43:24 -04:00
Paulus Schoutsen
b6ee5442f0 Track when cards get defined (#1310) 2018-06-21 10:42:52 -04:00
c727
691b80c08a Lovelace: Add picture card (#1308)
* Lovelace: Add scene card

* Fix radius

* Lint

* Add acitvate text

* Change on-click name

* Requested changes

* Remove navigate

* 2

* Lint

* Fix Cannot read property '_entityDisplay' of undefined
2018-06-21 09:37:24 -04:00
c727
f8b38ced26 Lovelace: Add picture-glance card (#1309)
* Lovelace: Add glance-toggle card

* Update

* Option to force dialog

* Fix box height

* Rename const

* Change name, separate sensors

* Lint

* Lint
2018-06-20 23:16:35 -04:00
Paulus Schoutsen
63b123fc8f Fix hiding menu button when not needed 2018-06-20 16:12:42 -04:00
Paulus Schoutsen
a92c187627 Version bump to 20180620.0 2018-06-20 15:09:30 -04:00
c727
92111cd5be Exp. UI: Add glance card (#1305)
* Exp. UI: Add vertical entities card

* Remove iron-icon import

* Add light

* Change name

* Flex

* Fix CSS

* Rebuild view to work with themes

* Lint

* Default title Home Assistant

* Tweaks
2018-06-20 15:08:01 -04:00
Paulus Schoutsen
1f8f6f52bc Rename experimental UI to lovelace (#1307)
* Rename experimental UI to lovelace

* Lint
2018-06-20 14:18:18 -04:00
Adam Mills
626b054540 Use localized operation modes in climate more-info (#1304) 2018-06-19 22:37:06 -04:00
Paulus Schoutsen
4acfa2ba88 Show an error screen when panel cannot be resolved (#1303)
* Show an error screen when panel cannot be resolved

* Lint
2018-06-19 15:50:52 -04:00
Paulus Schoutsen
87bd9ed48a Ask for reload on service worker change (#1302)
* Ask for reload on service worker change

* Lint and remove alert

* Fix it once and for all

* Lint
2018-06-19 15:50:41 -04:00
Paulus Schoutsen
ce4280e816 Version bump to 20180619.0 2018-06-19 10:55:16 -04:00
Paulus Schoutsen
3382430c8f Update translations 2018-06-19 10:55:13 -04:00
c727
c186a5aab2 Hassio: Add scrollbar to supervisor logs (#1301) 2018-06-19 15:31:16 +02:00
c727
21dcbb3b9d Fixes and cleanup for #1299 and #1296 (#1300)
* Fixes and cleanup

* Rename function to genHassioIcons

* Update
2018-06-19 14:36:43 +02:00
c727
cd33e2568a Exp. UI: add support for "big" cards (#1296)
* Exp. UI: add support for "big" cards

* Lint

* Requested changes

* Revert outdated changes

* ...2

* ...3

* Feedback
2018-06-18 22:18:20 -04:00
c727
4cf7959b12 Hassio: Fix menu button icon (#1299)
* Hassio: Fix menu button icon

* Move comments

* Hups
2018-06-19 01:32:40 +02:00
c727
dc9a227aa3 Exp. UI: Add error card (#1298)
* Exp. UI: Add error card

* Cleanup

* Lint

* Typo

* Requested changes
2018-06-18 19:19:01 -04:00
c727
2a8462951b Hassio: Fix glitch in HA update card (HA 0.72+) (#1297) 2018-06-18 18:01:49 -04:00
c727
449751c59f Exp. UI: add errorHandling for CustomElement and getCardSize() (#1295)
* Exp. UI: add errorHandling for CustomElement and getCardSize()

* Add ";"

* Lint
2018-06-18 13:04:12 -04:00
c727
d2eb0ef23f Exp. UI: add support for more info dialog (#1294)
* Exp. UI: add support for more info dialog

* Sort items

* Rename HIDE_MORE_INFO to DOMAINS_HIDE_MORE_INFO
2018-06-18 10:07:58 -04:00
Paulus Schoutsen
d752060f7a Version bump to 20180618.0 2018-06-18 09:54:55 -04:00
Paulus Schoutsen
cc74374390 Update translations 2018-06-18 09:54:44 -04:00
Paulus Schoutsen
dd87502688 Fix config entries (#1293)
* Fix config entries

* Reset error msg when flow is closed
2018-06-18 09:53:37 -04:00
Paulus Schoutsen
4e608e6a2c Version bump to 20180617.0 2018-06-16 22:33:33 -04:00
Paulus Schoutsen
ba2c3edc87 Fix closing tag 2018-06-16 22:32:46 -04:00
Paulus Schoutsen
13c8a00e97 Cleanup deps (#1288)
* Upgrade uglify-js

* Remove unused deps

* Add views
2018-06-16 22:32:05 -04:00
Paulus Schoutsen
1076fd8fc4 Version bump to 20180616.0 2018-06-16 17:32:05 -04:00
Paulus Schoutsen
5f226d1809 Add experimental UI (#1205)
* Add experimental UI

* Allow theming a view

* Name it css

* Allow applying themes

* Add filter card

* Add normal column layout logic
2018-06-16 17:29:18 -04:00
c727
75e3f1f37b Remove icon-set validation from customize (#1286)
we could set to hass or mdi but the use could still use a custom set
2018-06-16 06:50:26 -04:00
Paulus Schoutsen
b43b34263e Version bump to 20180615.0 2018-06-15 13:43:41 -04:00
Paulus Schoutsen
f79feae120 Update translations 2018-06-15 13:43:24 -04:00
Paulus Schoutsen
052e659782 Clean up calendar panel (#1285) 2018-06-15 13:38:02 -04:00
Paulus Schoutsen
890c31fb96 Add calendar translation and icon 2018-06-15 12:59:43 -04:00
Thibault Cohen
58a0f6aab9 Add scheduler panel (#1146)
* Add scheduler panel

* Rename scheduler to calendar

* Continue

* First working version

* Fix lint errors

* Fix comments

* Fix calendar display

* Continue fixing comments

* Continue fixing comments 2

* Continue fixing comments 3

* Fix UI to work with the new PRs

* Use preact-compat instead of react

* Fix tests

* Move css file in a panels specific folder

* Fix tests

* Add Event details dialog

* Improve date format

* Remove event details

* Continue

* Continue calendar

* continue

* Continue

* Cleaning

* Fix PR comments

* Lint

* Clean useless import and css

* Fix PR comments

* Fix PR comments

* Fix PR comments

* Clean Event handler

* Fix week view

* Continue
2018-06-15 11:17:46 -04:00
c727
2905cefd39 Localize more_info_settings (#1284) 2018-06-15 11:13:00 -04:00
Paulus Schoutsen
67cef55f34 Fix grey background partial-cards 2018-06-12 22:22:56 -04:00
Paulus Schoutsen
710d98feda Version bump to 20180613.0 2018-06-12 21:16:55 -04:00
Paulus Schoutsen
b085121ab4 Update translations 2018-06-12 21:16:50 -04:00
c727
274e1a671f Localize media player dialog (#1279) 2018-06-12 20:45:06 -04:00
c727
98df34c0a8 Replace \$= with $= (#1280) 2018-06-12 20:44:43 -04:00
c727
e28c651930 Hassio random fixes (#1278)
* Fix img width in markdown

* Flexify add-on view

* Hide deployment if null

* Fix mobile add-on view
2018-06-12 23:51:20 +02:00
Yevgeniy
8e8d907090 Change weather card to support forecasts with two modes (#1277)
* Separation of date and time

* Remove <div>, hour to numeric, text uppercase

* Revert style, fix <br>
2018-06-12 21:29:21 +02:00
starkillerOG
cf3d864378 General sound mode support (#1275)
* Add sound mode support

* Add sound mode support

* Rebase Sound Mode support

* Cammel case fix

* Sound mode support

* Add sound mode support

* change to attr-for-selected

* Simplify sound mode support
2018-06-12 21:27:54 +02:00
Paulus Schoutsen
7f133d0316 Don't rely on get panels from websocket package (#1264) 2018-06-12 09:28:41 -04:00
Paulus Schoutsen
9717166fee Allow placeholders for config flow description (#1274) 2018-06-12 09:28:20 -04:00
Paulus Schoutsen
0b6214be2b Random fixes (#1276) 2018-06-12 09:27:46 -04:00
Paulus Schoutsen
7f93317314 Update partial-cards.js 2018-06-10 22:54:36 -04:00
Paulus Schoutsen
b89de4b494 Point es5 adapter to frontend-es5 (#1273) 2018-06-08 16:37:52 -04:00
Paulus Schoutsen
d243f2ead6 Build a new Hass.io panel (#1271)
* Build a new Hass.io panel

* Use webcomponents-lite.js

* Compress new panel

* Lint
2018-06-08 15:26:48 -04:00
Paulus Schoutsen
92930a2b94 Add es5 adapter to es5 panel (#1272) 2018-06-08 14:58:15 -04:00
Andrey
7a2aff712b Better show custom ui versions (#1269) 2018-06-08 09:35:27 -04:00
Paulus Schoutsen
0ae676d9ba Better configure Carto Basemaps (#1267) 2018-06-07 17:16:08 -04:00
Paulus Schoutsen
673f769237 Remove word "EXPERIMENTAL" from config entry menu option (#1268) 2018-06-07 17:15:49 -04:00
Jaak Laineste
bb442c824b fix map URLs (#1265)
Fix attribution and URL for basemaps as in https://github.com/CartoDB/basemap-styles. Disclaimer: I'm PM for CARTO basemaps.
2018-06-07 14:09:01 -04:00
Paulus Schoutsen
ab16a3712e Version bump to 20180607.0 2018-06-06 22:40:32 -04:00
Paulus Schoutsen
b71a4be67e Update translations 2018-06-06 22:40:24 -04:00
Paulus Schoutsen
eb91cedf68 Update config entries text (#1263) 2018-06-06 22:37:34 -04:00
Paulus Schoutsen
9ac1384e1f Remove has-scrolling-region attribute
Fixes #1250
2018-06-06 22:36:34 -04:00
Paulus Schoutsen
cab53b3324 Use websocket for entity registry update (#1261)
* Use websocket for entity registry update

* Lint
2018-06-06 22:34:34 -04:00
Paulus Schoutsen
bf4d0e6bc9 Use websocket to fetch themes and translations (#1260)
* Use websocket to fetch themes and translations

* Lint
2018-06-06 22:34:20 -04:00
Paulus Schoutsen
10c997b7b2 Remove no longer needed blocks (#1262) 2018-06-05 21:20:34 -04:00
Paulus Schoutsen
4d48a63141 Further simplify build (#1256)
* Remove manual copy

* Use Webpack to create gzip versions
2018-06-04 07:06:12 -04:00
Paulus Schoutsen
af14fc6548 Preact: Import components in pages that need them (#1257) 2018-06-04 07:05:51 -04:00
Paulus Schoutsen
4bd14a5280 Version bump to 20180603.0 2018-06-03 12:24:53 -04:00
Paulus Schoutsen
cf57cf853b Update translations" 2018-06-03 12:24:37 -04:00
Paulus Schoutsen
8133102bcb Re-add service worker caching (#1247)
* Re-add service worker caching

* Lint
2018-06-03 07:38:22 -04:00
c727
dbcae9cb77 Localize configurator, climate (#1253)
* Localize configurator

* Add climate

* Fix typo

* Lowercase
2018-06-03 07:38:07 -04:00
c727
cb284d9718 Localize lock dialog (#1249)
* Localize lock dialog

* Fix attribute binding

* Add ev
2018-06-03 07:37:35 -04:00
c727
d16f4c846a Pass hass to state-history-charts (#1252) 2018-06-03 07:36:27 -04:00
Paulus Schoutsen
ce3564625e Bump version to 20180601.0 2018-06-01 10:51:37 -04:00
Paulus Schoutsen
e928be353a Update translations 2018-06-01 10:51:21 -04:00
c727
addb8e3111 Localize cover, fan, light, media player, history charts (#1244)
* Localize cover, fan, light, media player, history charts

* Don't capitalize
2018-06-01 10:50:28 -04:00
c727
fa11fbc85d Localize notification toasts (#1243)
* Localize notification toasts

* Use correct placeholder syntax

* Lint

* Use original string
2018-06-01 10:07:33 -04:00
Paulus Schoutsen
c3d67133c2 Improve custom panel support (#1236)
* Add custom panel

* Lint

* Add reference to docs

* Use panel.config
2018-06-01 10:06:28 -04: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
Marius
e11cca28fd Fixes #12707 Nest climate card contains redundant fields (#1234)
* Fixes #12707 Nest climate card contains redundant fields

Updated for better value handling

Fixed lint

* Remove some brackets
2018-06-01 14:58:34 +02:00
Paulus Schoutsen
1f14373117 Version bump to 20180531.0 2018-05-31 17:24:43 -04:00
Paulus Schoutsen
490c37e899 Update translations 2018-05-31 17:24:25 -04:00
c727
3c48973584 Make app toolbar text color themeable (#1225)
* Make app toolbar text color themeable

* Update ha-style.js

* Also theme tab selection bar
2018-05-31 17:23:43 -04:00
cdce8p
b378b92aa8 Fix paper-slider overflow issue (#1235)
* Fix overflow issue with slider pin

* Lint

* Reverted changes

* Style changes

* Centered position values a bit higher

* Use ha-labeled-slider

* Small update
2018-05-31 17:23:22 -04:00
Paulus Schoutsen
c0919cfe11 Add paper-time-input back (#1242) 2018-05-31 17:20:57 -04:00
c727
f96db5003a Automation dialog: add localization, fix CSS (#1227)
* Automation dialog: add localization, fix CSS

* Feedback

* Add bottom margin to dialog controls

* Remove margin for all
2018-05-30 22:57:45 -04:00
c727
a8fa8d46e5 ACP dialog: remove deprecated pattern check (#1238) 2018-05-30 20:12:57 -04:00
c727
673c7c5184 Remove is="custom-style" (#1237) 2018-05-30 19:59:31 -04:00
cdce8p
ff50414cbb Add Template extension points (#1230)
* Added first extension points for cover & climate

* Finished state-summary cards

* Cleanup
2018-05-30 11:41:11 -04:00
c727
b8ac150ee4 ACP dialog: localization, new codeFormat (#1226)
* ACP dialog: localization, new codeFormat

* Fix code validation

* Fix issues

* Fix issues
2018-05-30 09:32:30 -04:00
c727
2f6bb9af0c Correct relative time logic (#1231) 2018-05-30 13:18:14 +02:00
c727
348943f221 Weather card fix typo (#1229) 2018-05-30 01:24:28 +02:00
c727
74e0779d38 Add precipitation to weather card (#1098) (#1221) 2018-05-29 03:29:52 +02:00
Robert Accettura
21e4bc4ee4 Add pin pad to alarm panel (#1134)
* Add pin pad to alarm panel

* Update regex

* Add pin pad to alarm panel

* Lint

* Polymer3-ify

* Add new line
2018-05-29 02:51:03 +02:00
cdce8p
af6167b9c8 Fix cover icons for closing & opening (#1220)
* Fix cover icons for closing & opening

* Removed state &&
2018-05-29 02:18:38 +02:00
Paulus Schoutsen
eb29b73390 Hassio: no longer point at polymer repo 2018-05-28 19:49:40 -04:00
Paulus Schoutsen
e158709b1e Include iconset for hassio 2018-05-28 17:11:54 -04:00
Paulus Schoutsen
045b1d02be Restore old Hass.io HTML build (#1218) 2018-05-27 17:24:40 -04:00
Paulus Schoutsen
66012da4de Generate Hass and Hass.io specific iconset (#1214)
* Generate hass icons

* Generate Hass.io icons

* Convert hass.io to use hassio iconset

* Convert src to use hass iconset

* Give mdi-icons a chunk name

* gen-index-html aware of hass-icons

* Use ha-icon for rendering state icon
2018-05-27 17:04:18 -04:00
Paulus Schoutsen
294f0febbf Move Hass.io panel files to hassio folder (#1215) 2018-05-27 12:00:54 -04:00
Andrey
a79f98efbf Add webcomponents-bundle.js.map to dev version (#1216) 2018-05-27 11:56:22 -04:00
Andrey
dd57ddbef6 Try to use existing updateStyles for theming (#1217) 2018-05-27 11:56:01 -04:00
Paulus Schoutsen
d3b6740488 Version bump to 20180526.4 2018-05-26 19:55:30 -04:00
Paulus Schoutsen
f51503af4f Write old mdi.html exactly as hass.io expects (#1213)
* Write old mdi.html exactly as hass.io expects

* Create build dir if it doesn't exist
2018-05-26 19:55:08 -04:00
Paulus Schoutsen
0c92b356a1 Version bump to 20180526.3 2018-05-26 14:28:32 -04:00
Paulus Schoutsen
9393bb2fba Include ha-iconset-svg with mdi (#1212) 2018-05-26 14:28:14 -04:00
Paulus Schoutsen
61bc2d04f3 Version bump to 20180526.2 2018-05-26 11:50:27 -04:00
Paulus Schoutsen
71196b9704 Load icons via JS (#1211) 2018-05-26 11:50:03 -04:00
Paulus Schoutsen
29912d1b63 Update release script 2018-05-26 08:36:02 -04:00
Paulus Schoutsen
2d67a01ec2 Bump frontend to 20180526.1 2018-05-26 08:30:54 -04:00
Paulus Schoutsen
9d8f055f7b Version bump to 20180526.0 2018-05-26 08:26:43 -04:00
Paulus Schoutsen
c6f2f43767 Add old polyfill back (#1210) 2018-05-26 08:26:17 -04:00
PeteBa
f4c36e37bb Add entity_picture capability to plant card (#1145)
* Add entity_picture support to plant card

* Align font size with camera card
2018-05-25 18:26:47 -04:00
Paulus Schoutsen
d3c10d9b49 Forward change event vaadin combo box (#1208)
* Forward change event vaadin combo box

* Stop propagation
2018-05-25 16:46:54 -04:00
Paulus Schoutsen
4e9a7a4a23 Version bump to 20180524.0 2018-05-24 13:02:56 -04:00
Paulus Schoutsen
f24a26c686 Update translations 2018-05-24 13:02:40 -04:00
Paulus Schoutsen
df384dc23e Restore markdown for old Hass.io build (#1204) 2018-05-22 09:55:50 -04:00
Paulus Schoutsen
008fcbe1dc Update yarn.lock 2018-05-21 11:00:22 -04:00
Paulus Schoutsen
86a522ce65 Version bump to 20180521.0 2018-05-21 10:55:42 -04:00
Paulus Schoutsen
6bf34afc31 Fix ha paper slider (#1203)
* Fix ha-paper-slider

* Fix ha-paper-slider
2018-05-21 10:45:04 -04:00
Paulus Schoutsen
081e8d9824 Add html tag to legacy layer (#1202) 2018-05-21 10:21:46 -04:00
Paulus Schoutsen
8e6929659d Code split out more things (#1199) 2018-05-21 07:50:50 -04:00
Boyi C
4d50ab937a Some tweak for timeline chart (#1201)
* Some tweak for timeline chart

* remove comments
2018-05-21 07:50:29 -04:00
Paulus Schoutsen
0edf06bfb9 Filter out some modules (#1198) 2018-05-20 21:19:47 -04:00
Paulus Schoutsen
d1fcdfd5a3 Convert cover and media player models to classes (#1197) 2018-05-20 08:39:24 -04:00
Paulus Schoutsen
d7b2a03880 Don't use window to share CoverEntity (#1192)
* Don't use window to share CoverEntity

* Lint
2018-05-19 16:21:29 -04:00
Paulus Schoutsen
4a734fbffc Inline media player entity (#1191) 2018-05-19 16:12:49 -04:00
Paulus Schoutsen
41990767e2 Remove state history cache from window (#1193) 2018-05-19 16:12:38 -04:00
Paulus Schoutsen
0789c0884c Don't expose translation methods on window (#1194) 2018-05-19 16:12:26 -04:00
Paulus Schoutsen
4de7cbec30 Inline hass-attribute-util (#1196) 2018-05-19 16:12:11 -04:00
Paulus Schoutsen
1d144a101c Remove marked from window (#1195) 2018-05-19 16:12:03 -04:00
Paulus Schoutsen
1eda9155fd Version bump to 20180519.0 2018-05-19 10:37:43 -04:00
Paulus Schoutsen
43b0be9581 Fix hass.io panel 2018-05-19 10:37:22 -04:00
Paulus Schoutsen
52b6fe006f Version bump to 20180518.1 2018-05-18 18:11:46 -04:00
Paulus Schoutsen
365d660e79 Lint 2018-05-18 17:57:26 -04:00
cdce8p
34ec3e0ae5 Fix yarn dev script (#1186)
* Fix yarn dev script

* Removed yarn dev

* Update bootstrap
2018-05-18 15:17:50 -04:00
Paulus Schoutsen
059eda861e Fix placeholder camera image flash as broken image 2018-05-18 15:14:51 -04:00
Paulus Schoutsen
5ede26f162 Extract empty image 2018-05-18 15:12:24 -04:00
Paulus Schoutsen
960bdc0c9b Remove hassCallApi from window 2018-05-18 15:01:33 -04:00
Paulus Schoutsen
81fbda49bd Upgrade to home-assistant-js-websocket@2.0.1" 2018-05-18 13:36:38 -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
964ada87b7 Update dev link 2018-05-18 13:21:59 -04:00
cdce8p
ba3670c5db Fix fan rotation attributes (#1159) 2018-05-18 11:14:59 -04:00
Paulus Schoutsen
20ea9e5df7 Bump frontend to 20180518.0 2018-05-17 20:53:31 -04:00
Paulus Schoutsen
e1c9f3deea Everything through navigate mixin 2018-05-17 18:20:23 -04:00
Paulus Schoutsen
dba388f723 Version bump to 20180517.0 2018-05-17 17:53:26 -04:00
Paulus Schoutsen
3d1164f09c Update translations 2018-05-17 17:53:21 -04:00
Paulus Schoutsen
bc27f854f1 More cleanup (#1185)
* More cleanup

* Set up correct urls authorize.html

* Fix polymer lint

* Remove reference to bower

* Tweak uglify settings
2018-05-17 17:51:07 -04:00
Paulus Schoutsen
cb0db95abe Build hassio panel (#1184)
* Fix hass.io panel

* Add develop scripts

* Build hassio on Travis
2018-05-16 23:03:48 -04:00
Paulus Schoutsen
8ac08bc802 Remove unused import helper 2018-05-16 21:33:39 -04:00
Paulus Schoutsen
f70c0aea6c Org files (#1183)
* Organize files

* Import EventsMixin

* Import NavigateMixin

* Dissolve window.hassMixins

* Apply ElementMixin when we use it

* Update tests to point at right dir

* Eslint

* Clean

* Update mixins inside hassio

* Update lint command"

* Fix polymer lint
2018-05-16 13:47:34 -04:00
Paulus Schoutsen
d1adc2fed0 Version bump to 20180516.1 2018-05-16 09:38:42 -04:00
Paulus Schoutsen
1971223ad3 Code split voice and more info dialog out (#1182) 2018-05-16 09:38:01 -04:00
Paulus Schoutsen
3fa9896543 computeStateDomain instead of computeDmoain 2018-05-16 09:20:25 -04:00
Paulus Schoutsen
7b3b717f43 Version bump to 20180516.0 2018-05-16 08:55:16 -04:00
Paulus Schoutsen
405cb36904 Fix imports 2018-05-16 08:54:48 -04:00
c727
0c6f8c34fb P3: Replace hassUtil with imports (#1181)
* P3: Remove get is()

* P3: Replace hassUtil with imports

* Remove hass-util imports

* Fix errors
2018-05-16 14:03:04 +02:00
Paulus Schoutsen
23a2a479a5 Remove rollup (#1179)
* Remove rollup

* Fix build

* Add copy webpack plugin

* Touch service worker

* Remove unused ha-config-js-.js
2018-05-16 07:54:29 -04:00
c727
5a16095270 P3: Remove get is() (#1180) 2018-05-16 07:06:07 -04:00
Paulus Schoutsen
89cb8c87ae Fix map panel (#1178) 2018-05-15 18:00:07 -04:00
Paulus Schoutsen
96d7ec7cda Embed the preact code directly (#1177)
* Embed the preact code directly

* Do not transform object rest spread

* Lint

* Ignore preact from lint
2018-05-15 17:56:32 -04:00
Paulus Schoutsen
47642957c8 Don't run bower anymore when doing release 2018-05-15 14:14:38 -04:00
Paulus Schoutsen
65780de61e Version bump to 20180515.0 2018-05-15 14:06:23 -04:00
Paulus Schoutsen
646f0bb718 Stub service worker 2018-05-15 14:06:08 -04:00
Paulus Schoutsen
68fb35a401 Fix authorize path 2018-05-15 13:46:40 -04:00
Paulus Schoutsen
658b349755 Use url path instead of component name for path 2018-05-15 13:38:05 -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
Paulus Schoutsen
205d6a8347 Version bump to 20180510.1 2018-05-10 17:38:10 -04:00
Paulus Schoutsen
89333aa55e Update to home-assistant-js-websocket@1.2.1 2018-05-10 17:38:03 -04:00
Paulus Schoutsen
2a3325efd7 Version bump to 20180510.0 2018-05-10 14:26:38 -04:00
Paulus Schoutsen
3b7a206cec Add an authorize page for authentication (#1147)
* Use authorize page if auth provider

* Add webcomponent polyfill

* More fixes

* ES5 fix

* Lint

* Use redirect_uri

* upgrade uglify to fix tests?

* Update browsers used for testing
2018-05-10 14:25:36 -04:00
Paulus Schoutsen
912969111f Move all of hassUtil to JS (#1153)
* Move all of hassUtil to JS

* Fix tests
2018-05-09 21:33:31 -04:00
Paulus Schoutsen
9116f5733d Include util.js for hass.io (#1152) 2018-05-09 10:47:56 -04:00
Paulus Schoutsen
0fdf980fee Version bump to 20180509.0 2018-05-08 20:45:23 -04:00
c727
8ecc41388a Fix issues with new weather card (#1149)
* Fix issues with new weather card

* New line
2018-05-08 18:14:29 -04:00
Paulus Schoutsen
356e104096 Merge duplicate keys in travis yaml (#1150)
* Merge duplicate keys in travis yaml

* Update .travis.yml
2018-05-08 17:20:35 -04:00
Paulus Schoutsen
eeba117e4b Fix hass.io panel (#1148) 2018-05-08 17:54:38 +02:00
Paulus Schoutsen
3da55c6ab5 Version bump to 20180505.0 2018-05-05 11:34:48 -04:00
Paulus Schoutsen
faed5fbfe4 Update translations 2018-05-05 11:34:24 -04:00
cdce8p
6f738510fa Added sensor device_class 'light' (#1143)
* Added sensor device_class 'light'

* Changed icon

* Changed device_class name
2018-05-05 09:37:55 -04:00
Boyi C
de55c13355 Fix chart not updating #1104 (#1139) 2018-05-04 16:04:07 -04:00
Pascal Vizeli
38e1b16031 Update hassio-host-info.html (#1141) 2018-05-04 14:41:02 +02:00
Paulus Schoutsen
06341edc49 Fetch camera image via websocket connection (#1136)
* Fetch camera image via websocket connection

Lint

Cleanup

* setProperties
2018-05-03 22:04:25 +02:00
Paulus Schoutsen
9fc3d9d019 Fetch media player image from websocket (#1137) 2018-05-03 22:03:48 +02:00
Malte Franken
3e90db5fa3 Allows to define a custom "more info" dialog per entity (#1128) 2018-04-29 15:01:14 -04:00
c727
30555eda88 Remove Hassbian panel (#1132) 2018-04-29 18:08:03 +02:00
c727
ac38fdb9df Fix plant card batteryLvl 100 icon (#1130)
* Fix plant card batteryLvl 100 icon

* Update ha-plant-card.html
2018-04-28 19:29:36 -04:00
Paulus Schoutsen
4c6d9602ae Remove zoom plugin (#1104) 2018-04-27 14:09:25 -04:00
c727
811d99b68c Rework plant card (#1123)
* Rework plant card

* Lint

* Fix updates for battery icon
2018-04-27 10:26:34 -04:00
c727
a983a5dbc5 Weather card without chart (#1117)
* Weather card without chart

* Lint

* Add iron-icon

* Add night icon and translation

* More translations

* Lint

* Feedback

* More Flexbox KungFu

* Finishing

* Use hass lang instead of browser lang

* Add more info card

* Lint

* Improve support for other providers

* Support non-daily forcasts

* Here we go
2018-04-26 17:16:02 -04:00
Boyi C
f21db486eb Update timeline to 0.1.5, improve drawing for small element. (#1121) 2018-04-26 16:34:55 -04:00
NovapaX
e1b924a154 Update more-info-media_player.html (#1126)
Fixes https://github.com/home-assistant/home-assistant/issues/14098
2018-04-26 21:57:38 +02:00
Paulus Schoutsen
421b9ec800 Version bump to 20180425.0 2018-04-24 23:15:16 -04:00
Paulus Schoutsen
e8b84c6d52 Update translations 2018-04-24 23:14:55 -04:00
c727
86db23a957 Add translation for script and scene card (#1119)
* Add translation for script and scene card

* appliesMixin

* Change script button text to "execute"
2018-04-23 13:25:48 -04:00
Otto Winter
a22b62cf2a Add Sensor device_class support (#1115)
* Add Sensor Device Class Support

* ES6
2018-04-22 23:37:26 -04:00
Otto Winter
db2f588e86 Fix unavailable state icon (#1118) 2018-04-22 18:35:59 +02:00
c727
02cf337f1a Add www. to home-assistant URLs (#1111)
* Add www. to cloud skill URLs

* Update ha-config-cloud-login.html

* Update ha-panel-dev-info.html
2018-04-20 06:08:55 -04:00
c727
eafd7fb296 Update more-info-updater.html 2018-04-20 05:04:45 +02:00
Paulus Schoutsen
c0e3f8ec6b version bump to 20180420.0 2018-04-19 22:16:09 -04:00
Paulus Schoutsen
510cc6448e Update translations 2018-04-19 22:15:46 -04:00
Paulus Schoutsen
a832566715 Add Google Assistant integration (#1110)
* Add Google Assistant integration

* Fix card actions
2018-04-19 21:55:26 -04:00
Paulus Schoutsen
75ae672ef9 Update translations 2018-04-19 11:40:32 -04:00
NovapaX
570cb5d52b add default vacuum component icon (#1108) 2018-04-18 15:46:52 -04:00
NovapaX
afc4663870 allow label-badge-title font-weight theming (#1102)
* allow label-badge-title font-weight theming

* change to 400 weight

kept the variable for those who really prefer the thinness of before.
2018-04-18 14:16:13 -04:00
NovapaX
a5aaaf6a0a icon rename (#1105) 2018-04-18 20:15:31 +02:00
Adam Mills
288478978f Always run translation upload on master (#1106)
This ensures that if the master build gets cancelled when translations
change, or if any other weird situation happens, we know the
translations will be uploaded after the next build.
2018-04-18 14:11:31 -04:00
Adam Mills
e719f113d9 Fix for Lokalise backend misinterpretation of keys (#1107)
The Lokalise server has a bug that the internal portion of key
references was misinterpreted as a symfony key, and was getting auto
converted by the convert placeholders feature. Since we don't use this
we're turning it off to work around the bug.
2018-04-18 14:11:03 -04:00
NovapaX
2aa02ff561 Fix chart tooltip format for line charts (#1099)
* position tooltip correctly if chart is in history_graph card

* format & localize title in linechart

* tweak tooltip style/position
2018-04-18 09:44:43 -04:00
NovapaX
0a60ec2298 Fix paper-slider pin style (#1022)
* ha-paper-slider extends and copies paper-slider

* paper-slider -> ha-paper-slider

* remove promise

* this.is -> HaPaperSlider.is

* jsdoc to instruct linter

* suppress missing props

* fix linter

* more lint
2018-04-17 17:24:09 -04:00
NovapaX
cd3136908c classrename (#1097) 2018-04-17 21:17:10 +02:00
Paulus Schoutsen
6d547aaf21 Update release script to use twine 2018-04-17 10:17:09 -04:00
Paulus Schoutsen
85c4c51228 Version bump to 20180417.0 2018-04-17 10:11:34 -04:00
Paulus Schoutsen
5667f06a12 Update translations 2018-04-17 10:11:20 -04:00
Boyi C
5dc9efd995 Unify navigation to NavigateMixin (#1095)
* Unify page navigation to NavigateMixin

* revert unintended change

* Use template literal
2018-04-17 10:01:58 -04:00
Matt N
a2ec19e10f Don't send the Referer header to other origins. (#1092)
Avoid leaking the Home Assistant domain name (which often contains a person's name/alias) in the Referer header for non-same-origin requests.
2018-04-17 10:01:00 -04:00
NovapaX
8047313165 take zero height (#1089) 2018-04-17 10:00:47 -04:00
NovapaX
5068178aac Some more state wrapping fixes (#1082)
* climate state should never wrap

* some more state wrapping fixes
2018-04-17 10:00:11 -04:00
Paulus Schoutsen
a597749020 Use handler instead of domain (#1093) 2018-04-17 11:44:38 +02:00
NovapaX
1335a74605 Setting used paper-colors in ha-style (#1091)
* setting default paper-colors
clean up some whitespace/indentation

* better indentation
2018-04-15 16:16:11 +02:00
NovapaX
027165c8ac Prefix media-player-model and use it for more-info (#1088)
* prefix media player model with hass-
use model for more-info-mplayer

* missed a binding
2018-04-14 18:04:44 -04:00
Paulus Schoutsen
a512d9e910 Version bump to 20180414.0 2018-04-14 14:40:51 -04:00
Paulus Schoutsen
f385b6c80d Fix config entry localization (#1084) 2018-04-14 14:38:34 -04:00
Charles Garwood
fdfa09ed2e Add more-info dialog support to dev-states (#1071)
* Add state history card to dev-states

* add hass-mixins.html import

* Put icon for more-info next to entity_id
2018-04-13 21:35:49 -04:00
Boyi C
dc6ca7c774 Change padding logic (#1077) 2018-04-13 21:32:50 -04:00
NovapaX
f40d64d68c Easier theming and also apply theme to date picker (#1041)
* datepicker overlay backgrond

* style vaadin more

* cleanup diff

* make styling easier

* more vars

* sidebar text

* sidebar selected background backward compatible

* indent commented theming var

* fix sidebar text color incompatibility
2018-04-13 21:32:20 -04:00
NovapaX
961f43e4a5 correct max width. give small text some more space. vertical centering. (#1083) 2018-04-13 21:25:17 -04:00
NovapaX
2cf508e0b0 Some little tweaks (old browsers / iOS 9) (#1086)
* fix config panel flex

* fix media player card not shwwing picture

* prevent toggle being compressed / pushed away
2018-04-13 21:16:51 -04:00
c727
9d3b5c9d9b Hassio: select audio input/output for add-ons (#1078)
* Hassio: audio input/output for add-ons

* Lint

* Lint

* Lint...

* Pimp code

* Update to latest changes

* Lint

* Lint

* try again

* hm...

* Fix this.fire
2018-04-14 00:45:59 +02:00
Boyi C
57e500b109 Fix flex-box (#1076)
Small tweak styling
2018-04-12 08:58:46 +02:00
Paulus Schoutsen
d5776f750f Update Node version to latest LTS (#1080) 2018-04-11 21:01:25 -04:00
NovapaX
bfaebfe418 Pretty huge scrolling performance upgrade (#1069)
* turn ha-cards into its own layer
2018-04-10 09:25:00 +02:00
Charles Garwood
9cff9cac10 Add refresh button to logbook (#1072)
* Add refresh button to logbook

* cleanup old comment

* Address PR comments

* Code style update

* Remove id from paper-icon-button, style cleanup

* Update date handling, show refresh button for all days

* revert _currentDate changes
2018-04-09 10:59:48 -04:00
Charles Garwood
7967ab307c Adds date to systemlog entries (#1068)
* Adds date to systemlog entries

* Only return date if not today

* Fix lint

* Fix lint

* Address comments by c727

* tested and working this time

* fix lint

* remove unneeded formatDateTime function
2018-04-05 22:51:48 -04:00
Paulus Schoutsen
b57116f39c Bump version to 20180404.0 2018-04-03 16:48:46 -07:00
NovapaX
51f4028343 Fix scrollable clipping controls because of webkit-overflow-scrolling: touch; (#1065)
* change labeled slider

* fix `-webkit-overflow-scrolling: touch` clipping positioned elements

* Revert "change labeled slider"

This reverts commit fc34cb712b.
2018-04-03 16:47:26 -07:00
NovapaX
c83a05c1ea add issue template (#1067) 2018-04-03 16:43:28 -07:00
NovapaX
b102925323 fixing #940 (#1066) 2018-04-03 16:32:06 -07:00
John Arild Berentsen
1cda7791c1 give pollingintensity default value (#1059) 2018-04-01 12:03:32 -07:00
Andrey
efa956a0b5 Allow theming badge label color and hide empty label. (#1060) 2018-04-01 12:03:04 -07:00
Paulus Schoutsen
0a5767913a Update version to 20180401.0 2018-03-31 17:42:37 -07:00
Paulus Schoutsen
859ffdb66d Update translations 2018-03-31 17:42:30 -07:00
c727
4c65767e5a Fix TypeError for views (#1045)
* Fix TypeError for views

quick and dirty fix, maybe this file needs some more cleanup

problem:
if you have `default_view` in groups.yaml and reload groups in `computeViewStates(currentView, hass, defaultView)`
`defaultView` is (still) defined but but `hass.states.group.default_view` doesn't exist

Fix: #893

* Update partial-cards.html

* Add ;

* Lint
2018-03-31 17:35:33 -07:00
NovapaX
d7d167fbf9 Make paper-scrollable in fullscreen dialog resize properly (#1052)
* remove min-height to make paper-scrollable work properly.
Hack fullscreen background behind it

* apply fix to hassio-markdown-dialog
2018-03-31 17:32:02 -07:00
NovapaX
6447e98caa Fix language selection (#1056)
* fix attr-for-selected not finding language-tag

* look for attribute instead of property

* change to data-binding structure
2018-03-31 17:31:27 -07:00
NovapaX
d8fb01ab44 Hide empty 'Currently' on climate statecard (#1047)
* hide currently if no value

* zero is falsy. align items

* don't hide falsy values

* computed property instead of observer

* guard null/undefined
2018-03-31 17:29:49 -07:00
Paulus Schoutsen
77330d03b3 Guard for both undefined and null (#1053) 2018-03-31 12:09:22 -07:00
NovapaX
88ad376045 Don't uppercase unit_of_measurement in state-badge (#1025)
* determine unit from state. set case via label-is-state attr

* use css var and classnames

* use classnames and mixin

* use css var

* fallback, both needed and way more elegant
2018-03-29 17:35:51 -07:00
NovapaX
ed0696ea9c hide brightness slider on unavailable light (#1046) 2018-03-29 17:20:51 -07:00
Paulus Schoutsen
5508805f0b Version bump to 20180330.0 2018-03-29 16:59:38 -07:00
Paulus Schoutsen
d2688cab75 Fix markdown rendering 2018-03-29 16:58:23 -07:00
Paulus Schoutsen
06502cb93a Fix a bunch of lint errors (#1044)
* Fix a bunch of lint errors

* Add behavior jsdoc

* Convert ha-markdown to polymer element

* Update lint command
2018-03-29 16:57:15 -07:00
Paulus Schoutsen
0e227708b9 Fix tooltip with title on hass-subpage (#1048) 2018-03-30 01:39:53 +02:00
Paulus Schoutsen
e46d2e2934 Fix property 2018-03-28 16:34:39 -07:00
Paulus Schoutsen
caf1c2fdd1 Update markdown 2018-03-28 16:19:29 -07:00
Kory Prince
209a118833 Remove extra quoting to resolve issues on macOS (#1039) 2018-03-28 16:18:48 -07:00
NovapaX
0790cd1ac9 Improve chart loading behaviour and some other chart fixes (#1042)
* show is loading and animate chart display

* let tooltip overflow in more-info

* graph chart tooltip overflow

* style toopltip a bit more like material design guidelines

* smoother tooltip appearing

* timeline transition time

* max-widht -> width
2018-03-28 16:16:25 -07:00
c727
fb8fb09c73 Change attribute checks to handle if value == 0 (#1037)
if (0) is false
2018-03-27 23:57:01 -07:00
Paulus Schoutsen
7081fb5123 Update markdown 2018-03-27 23:52:35 -07:00
Kory Prince
6c2126fb5f Use build script for markdown-js.html (#1038)
* add script to build and minify markdown-js.html from npm

* update markdown-js.html from build script
2018-03-27 23:52:27 -07:00
Kory Prince
af1581b4c5 Migrate to Marked.js + js-xss for Markdown parsing (#1026)
* Migrate to Marked.js + js-xss for Markdown parsing

* Update JS

Updating JS with latest source code from NPM to ensure it has not been altered
2018-03-26 21:13:54 -07:00
NovapaX
38542e1f0c Set theme variables on html element (#1023)
* set theme on html element

* style toggle buttons with primary color

* Fix lint
2018-03-26 17:31:41 -07:00
NovapaX
d87d845dbc Fix long more-info toolbar title. (#1034)
Max 2-lines. Ellipsis overflow on supported browsers.
2018-03-26 17:28:35 -07:00
PeteBa
7be6d17b37 Change brightness to be real-time rather than max value (#1029) 2018-03-26 21:44:09 +02:00
NovapaX
981e94e84d Merge pull request #1032 from NovapaX/fix/state-info-badge-colors
Fix state-info badge colors (on polyfilled browsers)
2018-03-26 11:00:53 +02:00
NovapaX
c04c30337f Contain slots and scope css instead of using ::slotted
Polyfill converts `::slotted(*)` to `host-tag > *` which messes up
styles of descendents that are not slotted.
2018-03-26 10:50:10 +02:00
Paulus Schoutsen
8451f9487e Version bump to 20180326.0 2018-03-25 18:10:25 -07:00
Kory Prince
41e7235ccf use encodeURIComponent to encode API password (#1027) 2018-03-25 09:34:59 +02:00
c727
3b76238241 Hassio: support new mode (stable, beta, dev) (#1024)
* Hassio: support new mode (stable, beta, dev)

* mode -> channel

* Fix beta data
2018-03-24 22:14:48 +01:00
NovapaX
796ec4a4b0 Use hue, saturation and a brightness filter for state badge (#1021)
* Use hue and saturation values. Use css filter for brightness.

* Assign style properties at once.

* label => if else logic
2018-03-23 10:01:33 -07:00
Marc Khouri
6ee9808d42 Fixup styling of config entries (#1020)
* Fixup styling of config entries

Fixup the (temporary) styling of config entries by not using `paper-item`,
which made entries clickable / focusable

* Missed dependency
2018-03-22 23:16:50 -07:00
Marc Khouri
399d14a5e0 Add styling to Config Entries (#1011)
* Add some styling to Config Entries

This commit adds some styling to the (experimental) Config Entries

* re-add localization

Note: I'm having issues with localization on my current setup -- it doesn't
seem to be working for me 🤷. This commit just keeps the same localization
as there was previously, no change

* Update based on PR review

* Remove stale annotations
2018-03-22 10:32:32 -07:00
Paulus Schoutsen
42f3294523 Version bump to 20180322.0 2018-03-21 21:19:23 -07:00
Paulus Schoutsen
d609ce241e Update translations 2018-03-21 21:15:11 -07:00
Adam Mills
e5a5c353c4 Don't render minimum color temp with gray border (#1017) 2018-03-21 15:22:44 -07:00
Adam Mills
0df4aa6117 Use new light HS API for the color picker (#982) 2018-03-21 17:35:16 -04:00
c727
6bdf1c8b80 Hassio: show hardware (#997)
* Hassio: list hardware

* Hassio: show hardware

* Remove debug

* Travis

* Concept

* Lint

* Raised button

* Lint
2018-03-21 12:26:46 -07:00
NovapaX
421b9abc7d fix media-player source selection loop (#1012) 2018-03-21 18:20:14 +01:00
NovapaX
b107e0e15c Stop paper-slider to change value on touchdown on the sliderbar (#1006)
* Stop paper-slider to change value on touchdown on the sliderbar.
This prevents interfering with intended scroll. Touch-tap on the
sliderbar still works. Mouse-behavior doesn't change eiter.

* change property syntax
2018-03-19 14:42:51 -07:00
NovapaX
fe6c8faad7 fix vaadin overlay height (e.g in services picker) (#1007)
see: https://github.com/vaadin/vaadin-combo-box/issues/432
2018-03-19 14:42:05 -07:00
Andrey
46a2f4fd72 Make sure packages are up to date when releasing (#1004) 2018-03-17 17:26:45 -07:00
NovapaX
3324c7e01c Nicer scrolling for more-info (#1005)
* nicer more-info scrolling (momentum & rubberband)

* move chart into scrolling region.
Fixes resizing issues of the paper-dialog (and scrolling area) because
of chart rendering after loading.
2018-03-17 17:26:02 -07:00
Paulus Schoutsen
8146794857 Version bump to 20180316.0 2018-03-16 15:38:59 -07:00
Andrey
b03c361198 When /states/bad_view is selected - fall back to default view. (#1002) 2018-03-16 15:38:27 -07:00
cdce8p
860860099e Changed cover icon condition (#995) 2018-03-16 03:38:37 +01:00
Paulus Schoutsen
b80c52dab2 Fix race condition setting current language (#996) 2018-03-15 12:33:32 -07:00
c727
e0ca88b3ad Hassio enable beta updates from UI (#993)
* Hassio enable beta updates from UI

* Feedback

* Feedback2
2018-03-15 05:58:09 +01:00
Paulus Schoutsen
196ea97917 Use Home Assistant icon for homeassistant domain" (#994) 2018-03-15 04:19:29 +01:00
Paulus Schoutsen
4f55103a12 Version bump to 20180315.0 2018-03-14 16:13:10 -07:00
Paulus Schoutsen
9082b47687 Update translations 2018-03-14 16:13:10 -07:00
Andrey
05da295f27 Charts improvements (#992)
* Charts improvements

* Improve last-odd legend item.

* Revert dblclick

* Lint
2018-03-14 16:11:37 -07:00
NovapaX
9dc809cdb9 State display wrapping and fix full screen more-info (#991)
* state-info lower min-width, remove unnesecary wrapping div

* State normal line height, align flex baseline. Get rid of wrapping div

* fix full screen more-info-dialog
2018-03-14 11:42:10 -07:00
Ville Skyttä
09fe2172b2 Spelling fixes (#989) 2018-03-14 13:03:00 +01:00
Ville Skyttä
3d101116a2 Fix and update "Update Instructions" link (#990) 2018-03-14 12:58:48 +01:00
Paulus Schoutsen
2ed5b7e7c1 Move effects control down (#988)
It's the least important control in the whole more info picker, yet was taking up the prime spot.
2018-03-13 23:58:12 -07:00
NovapaX
7066b40e4c Apply paper-dialog-behavior instead of nesting paper-dialogs (#987)
* disable ha-url-sync

* apply a paper-dialog-behavior mixin to dialogs

* Revert "disable ha-url-sync"

This reverts commit 4758a81af61d9f6979a93c0a899d3788fb48090e.

* fix css :host attribute selector

* move hass back to the components
2018-03-12 18:20:04 -07:00
NovapaX
2c79094fb4 Change more-info-dialog name to ha-more-info-dialog (#986)
* change more-info name to ha-more-info-dialog (like other dialogs)

* rename element

* fix closing tag
2018-03-12 12:34:51 -07:00
c727
198e2dd11f Show JS version and custom UIs in dev info (#981)
* Show JS version and custom UIs in dev info

* Custom UIs

* Move to bottom
2018-03-11 16:35:49 -07:00
c727
3234777154 Add Norsk Nynorsk to languages (#984) 2018-03-11 15:13:50 -07:00
Adam Mills
0ec4cd668f Use backend translation for config entries (#980)
* Use backend translation for config entries

* Accept label/error callbacks on ha-form

* Add hassMixins import to ha-form
2018-03-11 12:47:52 -07:00
Paulus Schoutsen
f1736024cc Version bump to 20180310.0 2018-03-10 10:19:19 -08:00
Adam Mills
29f9b2d201 Fix backend translations load without selection (#979) 2018-03-10 10:06:25 -08:00
Paulus Schoutsen
97eec435ab Version bump to 20180309.0 2018-03-09 07:53:33 -08:00
c727
b52d2967df Hassio: confirm add-on uninstall (#977)
* Hassio: confirm add-on uninstall

* Travis
2018-03-08 18:11:43 -08:00
Paulus Schoutsen
964b048a93 Update translations 2018-03-08 16:16:43 -08:00
c727
a3ac015f84 Hassio show changelogs (#969)
* Hassio show changelogs

* wip

* update

* Travis

* Travis2
2018-03-08 16:14:07 -08:00
Paulus Schoutsen
85ab32d752 Upgrade home-assistant-js-websocket 2018-03-08 16:12:53 -08:00
c727
a1dbd18a9a Hassio snapshot: download + design tweaks (#972)
* Hassio snapshot download, upload

* some improvements

* Remove event

* Remove upload stuff

* Feedback

* Make downloads as suggested

* More updates

* Add tooltips
2018-03-08 15:52:52 -08:00
c727
08d4e0af18 Fix relativeTime format for Date() === dateObj (#974)
* Fix relativeTime format for Date() === dateObj

* Feedback

* Update hass-util.html
2018-03-07 17:31:13 +01:00
Adam Mills
1fbad393bf Lokalise upload fix (#976)
* Pin lokalise sceript to working version

* Include cleanups from the home-assistant scripts
2018-03-07 09:46:33 -05:00
c727
675a3adfbe Remove scrollbar in Hass.io iframe (#973) 2018-03-05 21:43:33 -08:00
Paulus Schoutsen
d0fc088c06 Version bump to 20180305.0 2018-03-05 15:18:59 -08:00
Paulus Schoutsen
ca6ec8bb0f Fix dev info panel dialog overlay (#971) 2018-03-05 15:18:37 -08:00
Paulus Schoutsen
f9b7268b9a Update translations 2018-03-05 15:11:19 -08:00
Paulus Schoutsen
bec9162198 Simplify the cloud screens (#967)
* Simplify the cloud

* lint

* Simplify registration flash message text

* Address comments

* Update title
2018-03-05 13:42:56 -08:00
Andrey
710139bf4b Clean charts and persist hidden lines (#970) 2018-03-05 13:40:53 -08:00
Paulus Schoutsen
e41b5238c2 Config entry tweaks (#960)
* Add support for picking an option to ha-form

* Fix overlay of paper-dialog inside app-layout

* Handle flows that finish/abort straight away

* Lint

* Remove alerts

* Remove userCreatedFlow from properties

* Don't use setProperties for 1 property
2018-03-05 13:06:22 -08:00
Paulus Schoutsen
d188821765 Prefer set properties (#968)
* Use set properties

* Address comments

* Update partial-cards.html
2018-03-05 00:12:55 -08:00
Andrey
19705a9c2b IntersectionObserver fixes (#964)
* IntersectionObserver fixes

* handle 'card -> entities -> card' case

* fix typo
2018-03-04 10:22:53 -08:00
Andrey
addad74019 Add css variables to toggle buttons colors (#966) 2018-03-04 10:20:54 -08:00
Boyi C
9dc33de49f Update chartjs to 2.7.2 (#963)
* Update chartjs to 2.7.2

* lint

* lint
2018-03-03 17:43:27 -08:00
c727
39172f8c49 Hassio reload addons and snapshots (#937)
* Hassio reload addons and snapshots

* Add refresh button again

* Travis

* Remove Eventlistener
2018-03-01 17:23:47 +01:00
Adam Mills
101794c88e Load and subscribe to backend translations (#894)
* Load backend translations

* Add support for component level state translations

* Fix selected language backend translation loading
2018-02-28 19:32:48 -08:00
c727
bae1ab822c Add Welsh + Indonesian to languages (#873)
* Add Welsh to languages

* Add Indonesian
2018-03-01 04:03:57 +01:00
NovapaX
f87dbc5735 retru importHref once to solve a webkit refresh issue (#958) 2018-02-28 13:59:01 -08:00
Sean Wilson
7377db312b Add 'lock' device class (#800)
* Add 'lock' device class

* Invert lock settings as per https://github.com/home-assistant/home-assistant/pull/11640
2018-02-28 13:25:33 -08:00
NovapaX
bb6c46180d Hide the date-clear icon and style vaadin-date-input like a paper input (#956)
* styling the vaadin-date-input like a paper input.

* move date-picker styles to ha-style
so they get reused automatically

* move vaadin date-picker-styles to thier own file.

* only disable clear button on required field.
and some style changes
2018-02-28 12:56:18 -08:00
Paulus Schoutsen
3ddb456970 Version bump to 20180228.1 2018-02-28 10:47:57 -08:00
Paulus Schoutsen
3fbd5e351e Add user agent check to frontend (#955)
* Add user agent check to frontend

* Remove auto generated comment.
2018-02-28 10:46:24 -08:00
Max Prokhorov
9c6d28fbc4 Chart.js labels and ticks with proper locale formatting (#948)
* Use hassUtil to format time in timeline tooltip

* Also format time in timeline ticks

* Use hassUtil.formatTime instead of moment.format
2018-02-28 10:40:38 -08:00
NovapaX
5966e872cf reinstate connectedCallback (#957)
using the debouncer this time so no harm
2018-02-28 19:19:09 +02:00
Paulus Schoutsen
9ca00d1c85 Version bump to 20180228.0 2018-02-27 20:47:46 -08:00
NovapaX
16734c7423 Fix history data processing (#951)
* don't call filterchanged twice. it's already an observer.

* fix data comparison
Compare new data from ha-state-history-data to existing data and replace
if changed

* remove unnecessary styles

* prevent multiple updates of chart-data

* remove console

* remove another console

* directly binding because debouncing in history-data element
shortening debounce time, works fine at 0

* remove inacurate comment
2018-02-27 20:40:25 -08:00
NovapaX
26b9ddf3ed fix safari es6 bug (#950)
and also at least log the error we catch. (don't know why the catch is
there, so not removing it)
2018-02-27 20:00:33 -08:00
Paulus Schoutsen
73608a73e7 Update zoom icon (#954) 2018-02-27 19:48:49 -08:00
Paulus Schoutsen
c2b090b912 Import mixin to silence build warning (#952) 2018-02-27 19:35:49 -08:00
Paulus Schoutsen
f75147c799 Reset height when not observing (#949) 2018-02-27 19:05:07 -08:00
Paulus Schoutsen
5296dcfe85 Entity Registry UI (#921)
* Entity Registry UI

* Tweak style in fullscreen

* Fix UI comments

* Fix imports

* Change title margin

* Fix graph rendering

* More style fixes

* Remove unused parameter
2018-02-27 19:04:58 -08:00
NovapaX
24bafceb71 Remove tap highlight on mobile Safari (#911)
* remove tap highlight

* indentation fix
removing tab that was already there

* Best of both worlds
Makes tap higlight visible on clickable elements on cards. (provides
some basic tap-feedback on iOS safari)

* allow highlight on sidebar links, add comment
2018-02-27 18:35:20 -08:00
c727
579adb0455 Hassio password protected snapshots (#936)
* Hassio password protected snapshots

* Remove space

* Travis

* Add checkmark to password

* Improve empty password detection

* Update

* Improvement for snapshot name

* Update

* Update hassio-snapshot.html

* Feedback

* Remove autofocus from password

* hidden -> dom-if
2018-02-27 18:09:06 -08:00
Paulus Schoutsen
3430996700 Migrate to app-drawer-layout (#929) 2018-02-27 17:38:19 -08:00
Andrey
ebc21aaa40 Disconnect unused more-info (#945) 2018-02-27 14:00:50 -08:00
c727
a88c6f49a2 Hassio sort add-ons on dashboard (#944) 2018-02-27 15:04:19 +01:00
c727
d27d9dd5da Hassio fix addon update info (#939) 2018-02-27 01:38:40 -08:00
Boyi C
807837a0dc Make the chart color more eye-friendly. (#941)
* Fix chart legend not showing correctly when data has 1 series.

* Change to flexbox

* Change timeline chart color to a palette.
2018-02-27 01:24:40 -08:00
Paulus Schoutsen
bb6b0ff714 Version bump to 20180227.0 2018-02-26 22:20:22 -08:00
Paulus Schoutsen
1ba34b1f78 Update translations" 2018-02-26 22:20:01 -08:00
NovapaX
44c325a929 prevent state display line-wrapping (#932)
* prevent state display line-wrapping
Only for applies to default statecards (state-card-display), not for
component specific statecards.

* compute class names function

* apply style to calculated class

* var -> const
2018-02-26 22:10:05 -08:00
NovapaX
294dec59a7 Fix display issues on iOS 9.3.5 (#901)
* Fix global default definition selector

* taking the brute force approach

* Some clarification in comment.
Feel free to change or remove. I thought this would be usefull as this
is a severe code duplacation that justifies some comment/clarification.

* Add link to PR/discussion for future reference

* Revert "taking the brute force approach"

This reverts commit 77d9920cd9.

# Conflicts:
#	src/resources/ha-style.html

* change comment

* always include paper-styles before custom style
2018-02-26 16:16:39 -08:00
Adam Mills
d4b257854d Add localization to the automation editor (#923)
* Add localization to the automation editor

* Unnest automation strings from `section`
2018-02-26 16:15:51 -08:00
Paulus Schoutsen
9f3458fcd1 Guard for contentWindow == null (#930) 2018-02-26 11:44:15 -08:00
Paulus Schoutsen
ff658c86ff Fix deprecated CSS (#928)
* Fix nested var

* Fix deprecated @apply syntax

* Hassio
2018-02-26 11:43:58 -08:00
Boyi C
0ab240c678 Fix chart legend not showing correctly when data has 1 series. (#926)
* Fix chart legend not showing correctly when data has 1 series.

* Change to flexbox
2018-02-26 10:46:20 -08:00
NovapaX
672bfb375f Fix paper card alignment in safari (#933) 2018-02-26 16:14:22 +01:00
Paulus Schoutsen
cdb9936795 Fix cards not getting updated (#927) 2018-02-26 00:24:07 -08:00
NovapaX
8b719778d0 search and replace (#924) 2018-02-25 19:44:03 -08:00
c727
1a18ee2755 Hassio fix issues with snapshot dialog (#920) 2018-02-25 01:34:34 -08:00
c727
5f5ac3834d Hassio rename advanced2 (#910)
* Change advanced to system

* Change advanced to system
2018-02-24 08:20:24 +01:00
c727
cdd4cabb4b Hassio, use CSS vars to avoid conflicts with themes (#918)
* Hassio, use CSS vars to avoid conflicts with themes

* More
2018-02-23 15:07:09 -08:00
c727
b47c5beacf Hassio remove TZ hack (#915) 2018-02-23 18:18:27 +01:00
c727
0ffb31999e Hass.io switch to tab navigation (#879)
* Hass.io switch to tab navigation

* Fixes

* Changes based on feedback

* Fix main

* move header back to main

* Remove space

* Navigation as suggested, replaced iron-pages
2018-02-23 01:26:29 +01:00
Paulus Schoutsen
c149ac735a Version bump to 20180221.1 2018-02-21 12:40:51 -08:00
Paulus Schoutsen
bb946d9eec Clean up cloud routing (#909)
* Clean up cloud routing

* Lint
2018-02-21 11:48:28 -08:00
Andrey
ea57e71c8b Optionally use Intersection Observer to late-load cards (#906) 2018-02-21 00:00:52 -08:00
Paulus Schoutsen
346022c48e Version bump to 20180221.0 2018-02-20 17:54:33 -08:00
Paulus Schoutsen
0a070a3fda Nav fixes (#908)
* Fail if script is not editable

* Fix config nav
2018-02-20 17:53:35 -08:00
Paulus Schoutsen
24c9dd0472 Version bump to 20180220.0 2018-02-20 09:07:37 -08:00
Paulus Schoutsen
9f27f75397 Upgrade chartjs timeline to 0.1.4 2018-02-20 09:05:15 -08:00
Paulus Schoutsen
35c8c70783 Lazy load iron page entries in config panel (#903) 2018-02-20 09:03:09 -08:00
Paulus Schoutsen
6a5de599df Change valueMin and Max props (#905) 2018-02-19 21:47:23 -08:00
Tabakhase
72a0b3520d Bring back zoom in charts using chartjs-plugin-zoom (#890)
* add chartjs-plugin-zoom + hammerjs

* adds a "unzoom" button for chartjs-plugin-zoom

* limits chartjs zoom and pan area by scanning all axis
2018-02-18 08:12:30 -08:00
Adam Mills
7acab579b4 Use new lokalise builtin unzip for download (#900) 2018-02-17 19:49:14 -08:00
Paulus Schoutsen
9de71db3cb Version bump to 20180216.0 2018-02-16 15:05:48 -08:00
Paulus Schoutsen
f3c3bb8c43 Config panel for Config Entries (#861)
* Initial implementation

* Update UI

* Update

* Address comments

* More comments

* Lint
2018-02-16 14:36:11 -08:00
Nash Kaminski
012e0981f2 [Bug] Do not overwrite the content of JSONTextField while the user is editing such (#895)
* Do not overwrite the context of JSONTextField while the user is editing such

* Style changes

* Handle case where valid JSON could potentially be overwritten.
2018-02-16 10:40:46 -08:00
Otto Winter
83e34f3f95 Fix template panel link (#898) 2018-02-16 09:20:43 -08:00
Paulus Schoutsen
f83a9d7339 Dev dependencies (#897)
* Upgrade eslint

* Upgrade rollup

* Upgrade mocha

* Upgrade gulp

* Upgrade more gulp

* Upgrade frontend stuff
2018-02-16 09:03:13 -08:00
Paulus Schoutsen
5731c1fa28 Load the chart resources in dev too (#896)
When switching to always loading the resources on demand, I forgot to change the default value to be always false instead of dev. This caused the charts not to load in dev.
2018-02-15 21:38:44 -08:00
Paulus Schoutsen
7860133709 Revert deps upgrade (#892) 2018-02-15 12:32:18 -08:00
Marius
1783696ecb more-info-climate.html use supported_features (#849)
* Added supported features for controls

* Improved supported features

* Removed lines resulted from rebase

* Fixed lint and review

* Added more supported_features and fixed fan mode bug
2018-02-13 23:20:11 -08:00
c727
10c07673c1 Fix mark items as (un)complete in shopping list (#887)
* Fix mark items as (un)complete in shopping list

Fix: #885

* Update ha-panel-shopping-list.html
2018-02-12 21:09:16 -08:00
Paulus Schoutsen
e2ff04e40b Lint 2018-02-11 10:31:12 -08:00
Paulus Schoutsen
932d8afbed Version bump to 20180211.0 2018-02-11 09:44:48 -08:00
Paulus Schoutsen
1cf18a34b8 Update dependencies 2018-02-11 09:44:28 -08:00
Paulus Schoutsen
7f461defc1 Improve UX template editor (#878)
* Improve UX template editor

* Address comments
2018-02-11 09:42:52 -08:00
Paulus Schoutsen
4c5d85746c Fingerprint charts (#883)
* Fingerprint charts URL

* cache in service worker
2018-02-11 09:01:17 -08:00
Boyi C
b6ad4edd32 Fix missing arguments in history-data. (#880) 2018-02-10 10:08:04 +02:00
Boyi C
c6030e6edc Replace Google Charts with Chart.js (#429)
* chartjs test

* [WIP] Modified for Chart.js

* Tweaking styles ( tooltips and lines )

* Almost done
TODO:
Change tooltips to HTML tag
Improve color function

* More work on Tooltips

* Improve update logic
Fix linting

* resolve conflict

* [WIP]
Create new tooltip mode hack.
Add axis padding to top and botton to prevent axis cutoff

* TODO: cleanup

* FIXME: tooltip in history graph not working correctly
reorganize some code

* fix build problem

* Fix color and tooltip issue
Fix label max width for timeline chart

* update dep

* Fix strange color after build due to `uglify` bug with reference the minified version.
Make line chart behavior more similar to Google Charts.
Make the chart honor to `unknown` and other state by manually calculate point value.

* fix bugs

* Remove label for only one data in timeline chart.
Fix bug for infinite loop in some cases

* Add HTML legend to chart.

* Fix isSingleDevice bug due to calculation.
Add isSingleDevice property support.

* fix for lint

* Replace innerHTML code with polymer node.

* Replace tooltip with HTML code

* fix tooltip style

* move default tooltip mode to plugin

* LINTING

* fix
Move localize history data to Timeline Chart.
Fix timeline static color.
Rework on chart resize.

* Bug fix:
Chart may disappear on some case.
Timeline chart calculation issue.
Change timeline chart hidden logic.

* fix tooltip
rework for resize event

* lint

* element

* Replace `var` to `let`.
Move import and ChartJs injection code to `ha-chart-scripts.html`.

* lint: convert more let to const

* fix font
fix undef

* update bower.json

* move

* Load chart code on demand
2018-02-09 22:39:15 -08:00
Paulus Schoutsen
500edbad0d Version bump to 20180209.0 2018-02-09 14:32:17 -08:00
Abílio Costa
3701e022bc Badge sorting (#844)
* sort badges correctly in user-defined group

* rename sorting list that is used for badges and groups

* remove trailing space

* better array iteration

* Revert "better array iteration"

This reverts commit 0a87b3350c.

* simplify sorting of badges
2018-02-09 14:30:35 -08:00
Paulus Schoutsen
be3f35c8cd Update translations 2018-02-09 14:28:21 -08:00
c727
81c49628e4 Hass.io card design for dashboard updateinfo (#877)
* Hass.io card design for dashboard updateinfo

* Remove test stuff
2018-02-09 22:49:17 +01:00
c727
ac628787ac Hass.io improve store (#875)
* Hass.io improve store

* Improve code
2018-02-09 22:48:58 +01:00
c727
6ce72444ae Hass.io improved snapshot view (#872)
* HASSIO Improved snapshot view

* HASSIO Improved snapshot view2

* Update main

* Feedback

* Travis

* Travis 2
2018-02-08 22:16:13 +01:00
c727
710c2f1094 Hass.io improved add-on view (#874)
* Rename

* Improvements

* Travis

* Feedback

* Typo
2018-02-08 22:15:51 +01:00
Steltek
1f703fbdda Make the password field autofocus on the login screen. (#862)
* Author:    Michel Meyers <debian@tcnnet.com>
Committer: Michel Meyers <debian@tcnnet.com>

Make the password field autofocus on the login screen.

* Update login-form.html
2018-02-07 16:39:50 -08:00
Marius
76153d1e17 Fixing #775 (#854) 2018-02-07 15:21:07 -08:00
Marius
ec930d2c56 HASSIO Improved addon view (#869)
* Improved addon view
Moved files to avoid conflicts with @c727
Modified data to addons
Removed unused properties
Removed blank line and unused class
Added link to polymer-element
Redone grouping

* Changes based on feedback

* Revert flex box

Maybe someone else can help to center the icon and text

* Display timestamp in new line

* Update hassio-card-content.html
2018-02-07 22:57:43 +01:00
cdce8p
9e09d5b095 ZWave Node Management - Show hidden nodes (#864) 2018-02-07 20:41:45 +02:00
Victor Cerutti
6ad0c254b5 Fix resizeObserver loop #12192 (#867)
When the slider width is updated, resizeObserver prevent for firing the function another time.
Exemple: https://jsfiddle.net/ba1ad26e/11/
Compete doc: https://wicg.github.io/ResizeObserver/#html-event-loop
Solution: Observe the width change of the card instead of the slider. If the state value is hidden/displayed, it won't change again the slider width and so it will prevent the msg in the log
Drawback: the function cannot use the width sent by the resizeObserver anymore as it's no longer the slider width but the card width
2018-02-05 22:31:00 -08:00
c727
a6340fb856 Fix themes for Hass.io Panel (#860)
* Fix themes for Hass.io Panel

* Link hass-util
2018-02-02 17:20:31 -08:00
Andrey
21ee9b297d Switch to babel env preset (#859) 2018-02-01 16:18:47 -08:00
Andrey
da807dc508 Add Object.values polyfill (#858) 2018-02-01 16:16:53 -08:00
Daniel Høyer Iversen
384d5fc8a9 Remove duplicate call to getDataArray (#853) 2018-01-31 20:14:19 +02:00
Paulus Schoutsen
fcea1fa57d Version bump to 20180130.0 2018-01-29 15:42:21 -08:00
Paulus Schoutsen
4f99bd6811 Update translations 2018-01-29 15:41:25 -08:00
Andrey
0256f73404 Pass language to charts and fix JS error (#847) 2018-01-29 00:28:03 -08:00
Andrey
a1b578f81e Report JS errors to backend (#842) 2018-01-27 11:50:13 -08:00
Andrey
13f8fa7e11 Add version to JS (#839)
* Add version to JS

* Throw if version wasn't found
2018-01-26 23:27:11 -08:00
Fabien Piuzzi
c11a525a2d Added support for humidity display in the climate state (#838) 2018-01-26 10:54:14 -08:00
covrig
d21c1bc615 Add input_text mode:password (#837) 2018-01-26 10:47:53 -08:00
Paulus Schoutsen
42d11c5a3f Version bump to 20180126.0 2018-01-25 23:25:09 -08:00
Paulus Schoutsen
41fe6e8021 Update translations 2018-01-25 23:24:13 -08:00
c727
c3e35a27ba Get language from languages[] first, detect CN (#830) 2018-01-22 23:24:27 -08:00
c727
89464c16ff Fix play/pause icon (#825)
* Fix play/pause icon

* Fix hidden
2018-01-21 19:50:12 -08:00
Paulus Schoutsen
9c2f6e591d Run Hass.io panel in an iframe (#678)
* Run Hass.io in an iframe

* Update hass.io build script

* Lint

* Lint

* Fix build script

* Lint
2018-01-21 00:39:56 -08:00
Andrey
3c95559f33 Extract climate state into a separate component (#820) 2018-01-20 22:09:45 -08:00
Matthias Dötsch
50ed7678a1 Add translate tags to "cards" (#818)
* Add translate tags to "cards"

affected cards:
 - camera card
 - persistent notification
 - weather

* Add translate tags to "cards"

code style

* Add translate tags to "cards"

changes from code review
2018-01-20 22:08:47 -08:00
Adam Mills
8649c5352b Core config translations (#821)
* Config dashboard translations

* Simplify config pages

* Core/Core/Validation

* Core/Core/Reloading

* Core/Core/Server_Management

* Core/Push_Notifications

* Core/Translation

* Core/Themes

* Initial hassbian config translations

* Switch to sentence cases
2018-01-20 22:08:22 -08:00
PeteBa
31bc099cef Aligning the front-end card with latest Plant component changes (#633)
* Aligning with latest backend plant component changes

* Address review comments and plant component alignment

* Revert PR636 to reinstate card

* Add plant domain icon
2018-01-20 21:48:24 -08:00
Victor Cerutti
447dd6640f feature : display input number next to slider (#808)
* feature : display input number next to slider

* Improvements for Box mode of input number

Add unit when available and align the value to the right

* fix for small width cards

hide state if slider width<100px

* add a space between if and (

* Fix value display after a window resize

State value is now hiding or showing correctly after a window resize, using iron-resize component

* fixes eslint validator

* Fix a typo in state-card

* Improvement : Apply all properties altogether

As suggered by @andrey-git, I made use of setProperties

* Watch for mode update of input_number

If a mode is updated and the box switches from "box" to "slider", it now also update the visibility of the state value depending on the slider width

* Update width showing state value

* Use ResizeObserver when available

* Fix conditionnal mistake

Related @andrey-git review here https://github.com/home-assistant/home-assistant-polymer/pull/808#pullrequestreview-90048982
2018-01-20 21:47:15 -08:00
Andrey
31d2b6ffe1 Disconnect dom in invisible tabs (#790)
* Clear dom in invisible tabs

* Disconnect DOM of inactive tabs
2018-01-20 21:47:04 -08:00
Andrey
aced689207 History improvements (#817) 2018-01-20 21:45:53 -08:00
Paulus Schoutsen
3736d45318 Version bump to 20180119.0 2018-01-19 09:53:18 -08:00
Paulus Schoutsen
5749e2f07c Update translations 2018-01-19 09:53:07 -08:00
Paulus Schoutsen
783f356679 Add timer card and badge (#810)
* Add timer card and badge

* Disable interval on disconnect

* Tests!

* One more test case

* Remove padStart

* Remove state from timer state card
2018-01-19 09:26:06 -08:00
c727
85d58ba134 Always show locationName in Title (#602)
* Always show locationName in Title

* Handle if no name set

* Fix lint

* Feedback

* Readd L66-L68

* Feedback and fix for default_view

* Fix c&p

* Change default name for default_view to "Default view"

* Make everyone happy

* Make everyone happy2

* Fix CP

* Handle no homeassistant.name in config
2018-01-18 22:10:04 -08:00
Andrey
8b8ba5875f Fix for browsers without SW (#805)
* Fix for browsers without SW

* Improve check
2018-01-17 17:10:15 -08:00
Paulus Schoutsen
9131a7c7e3 Add LastPass workaround (#811) 2018-01-17 10:07:08 -08:00
Marius
3e0193c704 Bug fix for #761 and color enhance when temperature in flux (#772)
* Correct triggering temperature when min is reached and user clicks extra #761

* Fixed build problems from lint

* Fixed as per feedback from @c727

* Updated based on PR feedback from @andrey-git

* Improved defect based on better solution from @andrey-git

* Updated vars to const based on feedback

* Updated control to support better changing values regardless of step based on feedback
2018-01-16 17:02:55 +02:00
Fabian Affolter
40731152e9 Enable probot move (#807) 2018-01-16 09:26:08 +01:00
Victor Cerutti
811e9e2a0e fix slider showed in box mode (#802)
fixes https://github.com/home-assistant/home-assistant/issues/11094
2018-01-16 10:14:41 +02:00
Alok Saboo
4029508b3f Fix icon for device_class occupancy (#801) 2018-01-15 14:39:36 -08:00
Andrey
6fd8ad52b0 Move horizontal padding from state-cards to containing entity-card (#799) 2018-01-14 20:48:37 -08:00
Andrey
fbe44598ac Cleanup of partial-cards (#798) 2018-01-12 13:31:39 -08:00
Andrey
58b2a28fe5 Make sure climate more-info dropdowns are upto date (#797) 2018-01-11 22:50:47 -08:00
Paulus Schoutsen
0b47d1f6a5 Version bump to 20180112.0 2018-01-11 15:50:18 -08:00
Andrey
d6fd21521c Add on/off to climate more-info (#794) 2018-01-10 14:07:03 -08:00
Paulus Schoutsen
e9dfa79f36 Add Alexa info to cloud account page (#793) 2018-01-10 13:19:28 -08:00
Paulus Schoutsen
728d781843 Fix history jump (#792) 2018-01-10 09:39:53 -08:00
Paulus Schoutsen
f2358acf2d Version bump to 20180110.0 2018-01-10 00:51:42 -08:00
Paulus Schoutsen
c8e4ac422b Update translations 2018-01-10 00:50:42 -08:00
Andrey
48b0857edb Make sure toggle is always up-to date (#783)
* Make sure toggle is always upto date

* Move logic to observer
2018-01-09 16:44:53 -08:00
Andrey
c06be58a33 Fix possible JS error (#789) 2018-01-07 14:13:49 -08:00
Paulus Schoutsen
7231976af6 Fix nested group more info (#788) 2018-01-07 13:25:10 -08:00
baflo
ea16ebd4f0 Changed behaviour of selecting base entity. (#735) 2018-01-06 21:49:44 -08:00
Andrey
0b9bd62251 Update canToggleState with toggleable climate (#782) 2018-01-04 23:57:23 -08:00
Nigel Rook
1d13126bb5 Use current date for input_datetime time rendering (#754)
* Use current date for input_datetime time rendering

Chrome has a bug where it fails to render times correctly using
toLocaleTimeString for certain dates in the past with non-normal
daylight saving rules. For the UK and New Zealand, this includes
1970-01-01. Instead of using this as the date when rendering the time
for a time only input_datetime, use the current date.

* Add comment

* Lint
2018-01-02 05:02:26 -08:00
Matt Schmitt
27d343b488 Update icons to match with actual state (#769) 2018-01-01 18:04:06 -08:00
Paulus Schoutsen
0a091a272c Version bump to 20180102.0 2018-01-01 17:12:20 -08:00
Marius
5728d8ad1b Fixed issue #767 Operation mode influence between different thermostats (#771)
* Fixed issue #767 Operation mode influence between different thermostats

* Capitalised Operation to be consistent with the rest of controls
2017-12-31 13:50:01 +02:00
Marius
bdea42f0b7 Fix for #371 (#774) 2017-12-31 13:39:59 +02:00
c727
fdcc73c6cc Change all keys for "Open"/"Closed" to cover-keys (#773) 2017-12-31 13:38:47 +02:00
Andrey
9e2396375e Fix history panel (#757) 2017-12-30 16:41:16 -08:00
Marius
5085c78f7e Fixing Climate More-info does not allow dual temp target setting (#765)
* Fixing #236

* Fixed build errors

* Updated PR based on feedback from @andrey-git

* Improved side by side style for dual temperature control

* Removed unused styling

* Removed code that is no longer needed after correction from feedback

* Updated based on feedback on discord

* Corrected errors from lint and refactored more vars to const
Fixed lint
2017-12-30 13:11:04 +02:00
Paulus Schoutsen
eeb949a081 Allow resending email verification (#770) 2017-12-29 12:43:28 -08:00
ciotlosm
0fd84a2f8d Fixing thermostat bugs (scrolling and state) #758 and #763 (#766)
* Fixing bug more-info-climate card interface scroll bug #758

* Fixes #763

* Renamed class to match value based on PR feedback
2017-12-28 21:21:55 +02:00
Matt Schmitt
4379df0d5c Additional device classes for binary sensors (#749)
* Add additional device classes for binary sensor

* Minor updates

* Travis fixes

* Update per comments

* Update per comments
2017-12-28 13:03:23 -05:00
Andrey
cf4d867fa1 Fix sw urls caching (#739)
* Fix sw urls caching

* Remove navigateFallback

* Syntax fix
2017-12-23 14:29:55 -08:00
Adam Mills
b3ded276b5 Properly localize unknown/unavailable sensors (#752) 2017-12-23 16:16:40 -05:00
Adam Mills
38088acf14 Use localized state display for timeline charts (#746)
* Fix import typo

* Use localized state names on timeline charts

* Track language in cache metadata
2017-12-23 14:02:33 -05:00
Adam Mills
1b60a93fcc Add translations for the login form (#751) 2017-12-23 14:02:14 -05:00
Adam Mills
e7df8cb195 Mailbox empty state styling (#750) 2017-12-23 12:06:34 -05:00
Paulus Schoutsen
440145ab1b Version bump to 20171223.0 2017-12-22 21:28:51 -08:00
Franck Nijhof
0c840e1751 Adds Rebuild button for local add-ons (#734) 2017-12-22 21:18:04 -08:00
Franck Nijhof
36c658096a 💄 Sort add-ons in the Hass.io add-ons store (#733)
Signed-off-by: Franck Nijhof <frenck@addons.community>
2017-12-22 21:17:04 -08:00
Adam Mills
34fd3e4899 Map and mailbox translations (#748)
* Map translations

* Mailbox panel translations
2017-12-22 21:16:02 -08:00
Andrey
b16bc88eb5 Switch to Zopfli compression (#744)
* Switch to Zopfli compression

* Lint
2017-12-22 21:12:54 -08:00
Andrey
60ac82edc5 Another fix for app-header-layout (#738) 2017-12-22 21:07:46 -08:00
Adam Mills
f0f1a56537 Show RGB picker when RGB not in state attrs (#736)
* Show RGB picker when RGB not in state attrs

* Use supported_features and hide controls when off
2017-12-22 21:06:29 -08:00
Adam Mills
097a8cfdc6 Translations for logbook/history panels (#741)
* Translations for logbook/history panels

* Switch to base localize function

* Move periods to generic durations keys

These are going to end up part of a duration class of keys that will be
more widely used.
2017-12-22 14:22:13 -05:00
Boyi C
1b66492db9 Fix for older Chrome browser. (#747)
* Fix for older Chrome browser.
Follow up for
home-assistant/home-assistant-polymer#730

* fix
2017-12-22 12:07:32 +02:00
Andrey
e202f08193 Charts fixes (#742) 2017-12-21 22:25:21 +02:00
Andrey
6b180988fd Make sure tap listener is added at most once. (#745)
* Make sure tap listener is added at most once.

* Add comment
2017-12-21 17:15:05 +02:00
Adam Mills
c8c21e6fac Refactor out our localize custom variant (#743) 2017-12-19 09:18:50 -05:00
David
af8f77779b Define textual state for connectivity device_class (#740)
* Define textual state for connectivity device_class

Define textual state for connectivity `device_class` for `binary_sensor`.

Without this addition, a `binary_sensor` using the connectivity `device_class` is simply shown as `Off` or `On`. The icon does change but only if the user hasn't defined a custom icon.

* Change wording

Change `Offline`/`Online` to `Disconnected`/`Connected`
2017-12-18 09:40:28 -05:00
Andrey
1aa1ac709d Fix climate chart with unavailable states (#737) 2017-12-18 08:38:58 +02:00
Paulus Schoutsen
91fadccf33 Version bump to 20171216.0 2017-12-15 23:29:48 -08:00
Paulus Schoutsen
0904af2ad2 Refresh account status while connecting (#727)
* Refresh account status while connecting

* Lint
2017-12-15 23:22:22 -08:00
Andrey
aa5ff72710 Don't use global event. It is unsupported in Chrome64 (#732) 2017-12-14 09:02:38 -08:00
Adam Mills
f8261d93d3 Problem device class (#726)
* Problem device class

* Move OK/Problem master to binary_sensor
2017-12-13 20:02:35 -08:00
c727
f385c7e7d5 Change "Reset to dafaults" to "Discard Changes" (#731)
https://github.com/home-assistant/hassio/issues/278
2017-12-13 08:31:43 -08:00
Boyi C
788650f8e5 Fix for some browsers (#730)
Move polyfill block before all scripts, it should fix page not loading issue on old browsers.
2017-12-13 00:36:00 -08:00
Adam Mills
0018a9a9c8 Fix bug on initial fragment load (#725) 2017-12-11 21:58:28 -08:00
Adam Mills
bf126b6c5e Translations for domain names (#724) 2017-12-10 15:45:48 -08:00
Adam Mills
c18247cd6b Sync translations post log_out move (#723) 2017-12-10 14:24:28 -05:00
Adam Mills
fa2cc68139 Sidebar translations (#722) 2017-12-10 13:47:33 -05:00
Adam Mills
8dde92d572 Fix pushSupported not bubbling to config-core (#721) 2017-12-10 09:57:58 -08:00
Andrey
baccd6fb88 Hide group header in case of empty name (#704) 2017-12-05 23:59:21 -08:00
Paulus Schoutsen
b99d9923ea Version bump to 20171206.0 2017-12-05 23:38:48 -08:00
Paulus Schoutsen
9d0e89e792 Update translations 2017-12-05 23:37:28 -08:00
Matt Schmitt
13f5e33087 Add device class for low battery (#696)
* Add device class for low battery

* Fix per comments

* Update per comments

* Update per comments

Sorting and revert back to “Normal” for state description

* Fix Travis error
2017-12-05 23:05:30 -08:00
Guillaume Rischard
a061a58494 Saved 180 KB out of 865 KB. 23.9% per file on average (up to 85.6%) (#717) 2017-12-05 22:56:14 -08:00
Andrey
9b3448d44c Make full path check before using google.visualization (#716)
* Make full path check before using visualization

* Missing check
2017-12-05 22:54:53 -08:00
Andrey
9ae2325834 Convert toggle margin to padding (#715) 2017-12-05 22:54:20 -08:00
Alok Saboo
688de2ff2d Use proper open close mdi icons (#718) 2017-12-05 22:47:29 -08:00
Adam Mills
e0a63a2ee3 Panel translation fragments (#691)
* Move flatten to separate gulp task

* Split translation fragments into separate files

* Load translation fragments when switching panels

* Fix gulpfile lint

* Move app-location to home-assistant.html

* Compute panel navigation in home-assistant.html

* Only pass down panelUrl from home-assistant.html

* Store panelUrl on hass

* Store computed panel on hass object

* Revert "Store computed panel on hass object"

This reverts commit 0f150b1faa2b91588a432ab346821b633b349d1a.

IMO this didn't really make the code cleaner. Just wanted to see how it
would look. Keeping it here as a reverted commit in case we do want to
use it.
2017-12-05 09:12:42 -05:00
Alok Saboo
2765c88d3f Fix mdi icons (#707) 2017-12-04 23:32:32 -08:00
Andrey
b092cdd04d Another dropdown-hidden-behind-header fix (#709) 2017-12-04 17:19:03 -08:00
Adam Mills
a723c62f4f Separate more JS util logic to be unit tested (#705)
* Move featureClassNames to js util

* Add tests for featureClassNames

* Strip empty feature class names

* Move canToggleDomain to js util

* Add tests for canToggleDomain

* Refactor canToggleDomain to ensure boolean return

* Switch to chai assert for richer syntax options

* Move canToggleState to js util

* Tests for canToggleState

* Enable linting for mocha tests

* Move stateCardType to js util

* Add tests for stateCardType

* Move stateMoreInfoType to js util

* Tests for stateMoreInfoType

* Include mdn Array includes polyfill
2017-12-03 20:56:16 -08:00
Paulus Schoutsen
c1e7f4cc77 Add iron-label to bower.json 2017-12-03 17:10:21 -08:00
Paulus Schoutsen
b0837059d4 Version bump to 20171204.0 2017-12-03 17:04:39 -08:00
NovapaX
8dc81b1daa Color wheel fixes (#706)
* hide overflow properly

* only try to do rgb stuff on init if we have a value

* just to be sure
2017-12-03 17:03:34 -08:00
Adam Mills
77cc77396b Fix push-notification toggle reset on failure (#701) 2017-12-03 15:30:14 -08:00
Adam Mills
7303e55f63 Move push notifications to config panel (#700) 2017-12-03 15:28:39 -08:00
Paulus Schoutsen
b73c3ed233 Add missing return to service picker 2017-12-01 23:33:40 -08:00
Paulus Schoutsen
f9cd2d9612 Version bump to 20171130.0 2017-11-30 11:39:54 -08:00
Paulus Schoutsen
90e6f59a74 Merge script and automation editor JS (#693)
* Merge script and automation editor JS

* Also consolidate the files
2017-11-30 11:38:21 -08:00
NovapaX
27046b00c6 Replacing the color picker with a Hue-Saturation color wheel. (#695)
* first workable version of a colorwheel

* don't stretch it too big smaller screens

* better touch/drag behaviour
+ some properties centralized

* changed coordinate system, dragable marker

* little tweaks and cleanups

* touch drag color tooltip

* Segments, color via attribute, throttling, CSS-styling, small fixes

* inmproved segment behaviour

* styling with css vars/mixins

* structuring, commenting and cleanup

* properly prevent user select

* don't import debounce

* settled on some default color segmentation and wheel styling

* getting rid of the hidden #wheel element
just set css vars on the backgroundLayer and get those via
getCumputedStyle

* remove the #wheel css declaration too

* width is just a stupid word that looks too much like with

* move the color circle/tooltip a bit higher

* quote all attributes
2017-11-30 11:20:16 -08:00
Andrey
7cfa694980 Fix initialization error in script/automation editors. (#699) 2017-11-30 11:19:26 -08:00
Lukas Barth
640e6eb1ef Climate: add supported_features (#642)
* Honor new supported_features

* Re-add legacy classes

* Move current temperature / humidity to attribute-based
2017-11-30 11:12:32 -08:00
Andrey
7d20d8fe71 Badge fixes (#694)
* Badge fixes

* Make sure label height is unchanged
2017-11-28 22:51:38 -08:00
uchagani
2680a3f7e3 Added armed_custom_bypass status. (#673)
Added icons for armed_night and armed_custom_bypass.
2017-11-27 22:39:24 -08:00
Paulus Schoutsen
326fa00365 Version bump to 20171127.0 2017-11-26 17:47:36 -08:00
Paulus Schoutsen
8054aa744e Listen to every change, not just final change event (#688) 2017-11-26 17:21:57 -08:00
Paulus Schoutsen
10ddb7faac Minify once, reduce build warnings (#692)
* Minify once, reduce build warnings

* Remove rollup-plugin-uglify

* address comment
2017-11-26 17:20:55 -08:00
Kane610
288ffad23a Configurator logo for deCONZ (#689)
* Configurator logo for deCONZ

* Resized image to 256x256
2017-11-26 12:34:48 -08:00
Paulus Schoutsen
9aaf50b089 Update translations 2017-11-26 12:14:50 -08:00
LvivEchoes
de5a33d1c7 Ukrainian language added (#624) 2017-11-26 12:14:20 -08:00
Lukas Porubcan
edf8cbb95b Added Slovak language translation (#651)
* Added Slovak language translation

* removed sk.json
2017-11-26 12:13:45 -08:00
Paulus Schoutsen
70d09641f8 Fix mocha opts 2017-11-26 12:08:27 -08:00
Paulus Schoutsen
bc94dce8f7 Fix bugs in service picker and service dev tool (#687) 2017-11-26 10:05:07 -08:00
John Arild Berentsen
48ecfe07a2 Usercode card was misplaced in fullscreen (#685) 2017-11-26 15:04:46 +02:00
John Arild Berentsen
958c5bf935 Fix failing build (#684) 2017-11-26 10:17:03 +02:00
Paulus Schoutsen
db0438dd4d Version bump to 20171126.0 2017-11-25 21:51:34 -08:00
Paulus Schoutsen
3ba15cb7b5 Fix error when creating new automation (#683)
* Import correct computeStateDomain

* ha-service-picker to not crash when no hass

* Fix routing be less active

* Fix combo box value sync
2017-11-25 21:43:52 -08:00
Paulus Schoutsen
69eb10c6dd Update translations 2017-11-25 16:08:57 -08:00
Paulus Schoutsen
508e1fd737 Fix build 2017-11-25 16:08:26 -08:00
Paulus Schoutsen
0707528bd7 Entity dropdown improvement (#674)
* Ignore hass changes while dropdown is open

* Upgrade vaadin-combo-box

* Fix styling on dev-service panel

* Fix styling for ha-entity-dropdown

* Fix height vaadin-combo-box dropdown

* Rename ha-entity-dropdown to ha-entity-picker

* More entity improvement (#675)

* Update script and automation editor to use entity picker

* Add entity and service picker to service dev panel

* Lint
2017-11-25 16:00:43 -08:00
Paulus Schoutsen
28457747e7 Fix eslint import extension (#682)
* Fix eslint import extension

* Update eslint hound

* Enable no unresolved for normal usage
2017-11-25 11:14:44 -08:00
John Arild Berentsen
5f5a62d094 Zwave usercodes, bugfix for #10754 (#677)
* Bugfix for #10754

* Adjustments

* Fix sloppiness
2017-11-24 23:57:21 -08:00
Paulus Schoutsen
80a11206af remove unused on-tap 2017-11-24 21:32:21 -08:00
Paulus Schoutsen
c330b87506 Shopping List: Allow adding items (#647)
* Shopping List: Allow adding items

* Remove unused parts
2017-11-24 21:27:55 -08:00
Paulus Schoutsen
a960559639 Add eslint mocha options (#671)
* Add eslint mocha options

* Please hound

* Remove deprecated --compiler option
2017-11-24 21:01:15 -08:00
Klaas Hoekema
6c2cd420f5 Set 'heating' graph series only for climate graphs (#665)
PR #617 added a steppedArea series to climate graphs to show when the
thermostat is calling for heat. It also accidentally converted the second
series in every graph to steppedArea. This moves the option specification
into the `if (domain === 'thermostat' || domain === 'climate')` block so
it will only be applied when it's relevant (and gets it closer to the
series it's configuring).

It also calculates the series index by counting the number of columns
immediately after the target one is added. Which still isn't elegant,
but seems solidly better than hard-coding the index as `1`.
2017-11-23 12:27:31 -08:00
c727
95288f8c3d Add Latvian to languages (#669) 2017-11-23 12:26:41 -08:00
Andrey
2cfda880ac Don't use file extend in hound .eslintrc. It is not supported. (#670)
* Don't use file extend in hound .eslintrc. It is not supported.

* Extend the other way around
2017-11-22 15:59:16 -08:00
Paulus Schoutsen
713117d4d9 Add an entity picker (#666)
* Add an entity picker

* Lint
2017-11-22 14:37:25 -08:00
linvinus
db630677a4 fix for #667 (#668)
* fix #667

* fix travis errors
2017-11-22 14:35:58 +02:00
Paulus Schoutsen
3a100bff23 Make ha-markdown use no polymer (#662) 2017-11-21 21:15:04 -08:00
c727
ea4fd25330 Don't cut off help text on mobile devices (#663) 2017-11-21 19:28:04 +02:00
Paulus Schoutsen
0dd1d4f478 Version bump to 20171121.1 2017-11-20 21:58:40 -08:00
Paulus Schoutsen
57ecbf27ca Update translations 2017-11-20 21:57:22 -08:00
Paulus Schoutsen
3d90d1d016 Tweak index.html (#657) 2017-11-20 21:52:35 -08: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 e3509d7182.

* Revert "Always recalculate state display"

This reverts commit 27c24e2694.
2017-11-20 21:46:36 -08:00
Alok Saboo
7e77a7c32c Add presence device_class for binary_sensor (#659)
* Add presence device_class

* Added translations

* Update en.json
2017-11-20 21:45:08 -08:00
Paulus Schoutsen
cb5c9b3f3f Convert configurator to markdown (#644)
* Convert configurator to markdown

* Lint

* Change order
2017-11-20 21:41:53 -08:00
Adam Mills
8d790e9601 Add icons for input_datetime (#661) 2017-11-20 21:23:19 -08:00
Paulus Schoutsen
2ff0be8529 version bump to 20171121.0 2017-11-20 20:45:46 -08:00
Paulus Schoutsen
0b9e7d5fa2 Don't use custom element constructor (#658) 2017-11-20 20:44:58 -08:00
c727
e5974ab71b Add Korean and Bosnian (#650) 2017-11-19 13:35:47 -08:00
Andrey
5a65fd7526 Add missig style (#653) 2017-11-19 10:41:39 -08:00
Paulus Schoutsen
4f18bdf0ea Tweak create account verbiage 2017-11-19 10:30:48 -08:00
Adam Mills
fbc9755796 Keep language/resources on login (#646) 2017-11-18 20:04:40 -08:00
Paulus Schoutsen
d658beacea Version bump to 20171118.0 2017-11-17 19:08:54 -08:00
Pierre Ståhl
01fab1075e Clear log entries if clear is pressed (#637)
* Clear log entries if clear is pressed

* Fix comparisons

* Clear entries instead of refresh
2017-11-17 10:54:12 -08:00
Andrey
415b0b127f Don't put functions in global scope (#640) 2017-11-17 10:27:56 -08:00
Andrey
1a71ee5af3 Prevent hound from running eslint on html files (#638) 2017-11-17 09:05:13 -08:00
Paulus Schoutsen
1c2d713846 Version bump to 20171117.1 2017-11-16 22:07:35 -08:00
John Arild Berentsen
b15edbd4fd Add option to retrieve n amount of last lines from log. (#604)
* Add option to retrieve n amount of last lines from log.

* Move line logic to backend

* Review changes

* Review changes

* Only print text

* Use query params instead of url path to specify lines
2017-11-16 22:07:03 -08:00
Paulus Schoutsen
d79ae551b2 Version bump to 20171117.0 2017-11-16 22:02:53 -08:00
Paulus Schoutsen
6074de356c Disable plant card (#636) 2017-11-16 21:52:07 -08:00
Paulus Schoutsen
72f22f6214 Update translations 2017-11-16 21:47:28 -08:00
Pierre Ståhl
c0df1e2a89 Add frontend for system log (#603)
* Add frontend for system log

* Minor review fixes

* Cleanup
2017-11-16 21:25:46 -08:00
c727
1af77e682d Add pt-BR to languages (#625) 2017-11-16 21:20:23 -08:00
Andrey
7db89d5bc2 Clean rollup (#634) 2017-11-16 21:19:29 -08:00
Andrey
ef5155984f Use keys in state_badge::alarm_control_panel (#631) 2017-11-16 21:15:05 -08:00
PeteBa
8f0ebcb69d WIP: Ha-card for plant component (#583)
* Ha-card for plant component

* Feedback updates and grid css

* Revert grid css
2017-11-15 23:29:55 -08:00
Adam Mills
70c082716f MVP tests for hass-util.html (#629)
* MVP tests for hass-util.html

* MVP util.js to allow individual JS function export

* Use mocha to unit test js logic

* Isolate mocha test directory

* Move mocha opts to separate file

* Default export of util function

* Use reify for mocha tests instead of babel
2017-11-15 21:42:54 -08:00
Adam Mills
3ff9fe1041 Build ES5/ES6 in parallel to share gulp deps (#615)
* Build ES5/ES6 in parallel to share gulp deps

* Rollup es5 files into build-temp-es5

* Use correct ES5 path for compatibility.js
2017-11-15 18:05:52 -08:00
Andrey
41e97a6f83 Clone app-header-layout (#632)
* Fix group more-info not updating

* Remove old observer

* Upgrade translate(0) hack
2017-11-15 17:12:09 -08:00
Paulus Schoutsen
8078158a56 Version bump to 20171115.0 2017-11-14 22:47:22 -08:00
Paulus Schoutsen
57997be342 Update translations 2017-11-14 22:46:56 -08:00
Paulus Schoutsen
6fac4e9027 Expose build type on window (#630)
* Expose build type on window

* Build two panels for Hass.io
2017-11-14 22:39:20 -08:00
Klaas Hoekema
de87c5b19b Add shaded area to show when calling for heat (#617)
Adds a series to the climate graph to shade the area under the current
temperature line red when the thermostat is calling for heat.

Uses the current temperature because it's guaranteed to be in the right
temperature range for the graph and it should minimize overlap since by
definition when the thermostat is calling for heat the current temp would
be below the target temp.

Uses `steppedArea` because most other series types don't handle
intermittent (i.e. with sections of `null` throughout) data very well.
2017-11-14 20:44:24 -08:00
Adam Mills
8cf0c0e94d Fix build attempting to include translationMaster (#628)
* Fix build attempting to include translationMaster

* Use full gulp path to run with no extra setup
2017-11-14 20:36:46 -08:00
Andrey
675a7a3b86 Fix group more-info not updating (#622)
* Fix group more-info not updating

* Remove old observer
2017-11-13 08:29:47 -08:00
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
Paulus Schoutsen
926c46b701 Tweak cloud config (#618) 2017-11-12 11:44:59 -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 d2faeaffe7.

* Don't lose translation resources on logout

* Fix lint
2017-11-11 18:16:15 -05:00
Paulus Schoutsen
1f9fc46576 Version bump to 20171111.0 2017-11-11 13:33:50 -08:00
Paulus Schoutsen
3701683d4b Pre-construct frontend index.html (#609)
* Pre-construct frontend index.html

* Only preload things that matter

* Fix entry point in dev mode

* Template Service worker url

* Update referenced service worker
2017-11-11 13:30:14 -08: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
b7d2b2fcfd Remove src/translations/ from polymer build (only used in gulp). Remove unused zwave-node-options.html (#613) 2017-11-11 13:07:22 -08:00
Adam Mills
508b5d6d77 Minify translations downloaded from Lokalise (#611) 2017-11-11 15:33:47 -05:00
Andrey
adac8e55d7 Updates packages and clean gulp/ JS (#610) 2017-11-11 11:32:22 -08:00
Paulus Schoutsen
a2612af6a9 Version bump to 20171110.0 2017-11-10 22:39:38 -08:00
UnrealKazu
67e040ad8e Add filters to dev-state page (#595)
* Add filter functionality for entities and states

Entities and states can now be filtered by entering a string in their respective input fields.

* Add filter functionality for attributes

Attributes can now also be filtered. Without a colon in the search string, if any attribute's key or value matches the string, the entity is matched. If there is a colon, keys and values are matched separately, and the entity is only matched if both key and value match.

* Hide attribute filter in narrow mode

When the browser triggers narrow mode the attribute filter now hides properly.

* Improve eslint adherence

The code is now correctly linted against the HASS eslint standard.

Also simplified the code which distinguished arrays from strings when matching.
2017-11-10 21:48:51 -08:00
Andrey
152df2297a Change serving of JS-version dependent files to frontend_es5 and frontend_latest (#608) 2017-11-10 21:44:03 -08:00
Adam Mills
6de540a0b1 Fix WCT config - specify generic Safari 10 (#607)
Apparently the minimum safari version has been bumped from 10.0 to 10.1.
We can just specify 10 here to be more generic.
2017-11-10 14:38:16 -05: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
86128d54b4 Auto deploy base translations with Travis (#599) 2017-11-09 19:15:55 -08:00
Adam Mills
f81429702c Replace existing translations on upload (#597) 2017-11-09 13:42:45 -05:00
Adam Mills
5722b6bbdb Accept Lokalise token from environment (#598) 2017-11-08 23:59:10 -05:00
Stephen Yeargin
bac3d8c17e Add-Ons > Add space between text and repository link (#594)
A subtle change, but improves how it is displayed.
2017-11-08 17:35:43 +02:00
John Arild Berentsen
9f6edeec6e Add Save config button (#568) 2017-11-07 12:47:21 -05: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
NovapaX
4f4224953f fix mask-icon (#582)
* fix mask-icon
Somehow there was a rectangle in the export with some opacity making the
mask-icon not work properly (got a bit ugly)

* svg reduced to bare minimum
2017-11-06 14:49:12 -08: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
Adam Mills
aa389bf206 Safety check for translations upload script (#573) 2017-11-05 20:11:12 -08:00
Paulus Schoutsen
a8b5d07d66 Version bump to 20171106.0 2017-11-05 18:25:51 -08:00
Adam Mills
f16886f63d Add Spanish to the translation metadata (#572)
Fixes #569
2017-11-05 17:45:36 -08: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
Andrey
798a2bbd34 Merge pull request #566 from andrey-git/caching
Fix rules for SW runtime file caching.
2017-11-05 21:57:54 +02:00
Andrey
0dc3bc7926 Update gen-service-worker.js 2017-11-05 21:51:30 +02:00
andrey-git
3025b6049f Update rules 2017-11-05 20:59:46 +02: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
andrey-git
db9dc653e0 Remove stale comment 2017-11-05 19:55:55 +02:00
John Arild Berentsen
9b0f4fa234 Add new Z-Wave services, heal_node and test_node (#565)
* Add new Z-Wave services, heal_node and test_node

* lint
2017-11-05 09:44:18 -08:00
andrey-git
2596d2ba52 Change networkFirst to networkOnly 2017-11-05 19:38:39 +02:00
andrey-git
904c3db3ea Fix rules for SW file caching. 2017-11-05 19:26:27 +02:00
Adam Mills
90b80880ed Store current translations in git (#563)
* Store current translations in git

* Handle empty strings in translation downloads

* Use more consice filtering

* Skip empty keys on translation download
2017-11-04 16:44:07 -07: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
Paulus Schoutsen
551cbe5afa Version bump to 20171103.0 2017-11-02 22:50:59 -07:00
Paulus Schoutsen
a574bf8e0f Update tos&privacy links 2017-11-02 22:50:59 -07:00
NovapaX
28a0f2405e add favicon.svg to public/icons (#548)
* add favicon.svg to public/icons

* remove old logo, change name to mask-icon
2017-11-02 20:55:15 -07:00
Andrey
d2e9918f88 Allow passive events (#551) 2017-11-02 20:54:41 -07:00
1274 changed files with 159634 additions and 33261 deletions

View File

@@ -1,6 +1,4 @@
node_modules
bower_components
hass_frontend
build
build-temp
hass_frontend_es5
.git

View File

@@ -1,5 +1,5 @@
{
"extends": "airbnb-base",
"extends": ["airbnb-base", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
@@ -8,17 +8,28 @@
},
"settings": {
"react": {
"pragma": "h"
"pragma": "h",
"version": "15.0"
},
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"globals": {
"__DEV__": false,
"__DEMO__": false,
"__BUILD__": false,
"__VERSION__": false,
"__STATIC_PATH__": false,
"Polymer": true,
"webkitSpeechRecognition": false,
"ResizeObserver": false
},
"env": {
"browser": true
"browser": true,
"mocha": true
},
"rules": {
"class-methods-use-this": 0,
@@ -40,10 +51,15 @@
"no-multi-assign": 0,
"radix": 0,
"no-alert": 0,
"no-return-await": 0,
"prefer-destructuring": 0,
"no-restricted-globals": 0,
"no-restricted-globals": [2, "event"],
"prefer-promise-reject-errors": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": 0,
"import/extensions": [2, "ignorePackages"],
"object-curly-newline": 0,
"default-case": 0,
"react/jsx-no-bind": [2, { "ignoreRefs": true }],
"react/jsx-no-duplicate-props": 2,
"react/self-closing-comp": 2,
@@ -53,13 +69,11 @@
"react/no-find-dom-node": 2,
"react/no-is-mounted": 2,
"react/jsx-no-comment-textnodes": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2
"react/jsx-uses-vars": 2,
"no-restricted-syntax": [0, "ForOfStatement"],
"prettier/prettier": "error"
},
"plugins": [
"html",
"react"
]
"plugins": ["react", "prettier"]
}

15
.eslintrc.json Normal file
View File

@@ -0,0 +1,15 @@
{
"extends": "./.eslintrc-hound.json",
"plugins": [
"react"
],
"env": {
"browser": true
},
"parser": "babel-eslint",
"rules": {
"import/no-unresolved": 2,
"linebreak-style": 0,
"implicit-arrow-linebreak": 0
}
}

13
.gitattributes vendored Normal file
View File

@@ -0,0 +1,13 @@
# Ensure Docker script files uses LF to support Docker for Windows.
# Ensure "git config --global core.autocrlf input" before you clone
* text eol=lf
*.ts whitespace=error
*.js whitespace=error
*.ico binary
*.jpg binary
*.png binary
*.zip binary
*.mp3 binary
demo/public/api/camera_proxy_stream/* binary

37
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,37 @@
<!-- READ THIS FIRST:
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests
- Provide as many details as possible. Do not delete any text from this template!
-->
**Home Assistant release with the issue:**
<!--
- Frontend -> Developer tools -> Info
- Or use this command: hass --version
-->
**Last working Home Assistant release (if known):**
**UI (States or Lovelace UI?):**
<!--
- Frontend -> Developer tools -> Info
-->
**Browser and Operating System:**
<!--
Provide details about what browser (and version) you are seeing the issue in. And also which operating system this is on. If possible try to replicate the issue in other browsers and include your findings here.
-->
**Description of problem:**
<!--
Explain what the issue is, and how things should look/behave. If possible provide a screenshot with a description.
-->
**Javascript errors shown in the web inspector (if applicable):**
```
```
**Additional information:**

13
.github/move.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
# Configuration for move-issues - https://github.com/dessant/move-issues
# Delete the command comment. Ignored when the comment also contains other content
deleteCommand: true
# Close the source issue after moving
closeSourceIssue: true
# Lock the source issue after moving
lockSourceIssue: false
# Set custom aliases for targets
# aliases:
# r: repo
# or: owner/repo

4
.github/release-drafter.yml vendored Normal file
View File

@@ -0,0 +1,4 @@
template: |
## What's Changed
$CHANGES

15
.gitignore vendored
View File

@@ -1,10 +1,11 @@
build/*
build-temp/*
build
build-translations/*
node_modules/*
bower_components/*
npm-debug.log
.DS_Store
hass_frontend/*
.reify-cache
demo/hademo-icons.html
# Python stuff
*.py[cod]
@@ -19,3 +20,11 @@ venv
lib
bin
dist
# vscode
.vscode/*
!.vscode/extensions.json
# Secrets
.lokalise_token
yarn-error.log

View File

@@ -3,4 +3,4 @@ jshint:
eslint:
enabled: true
config_file: .eslintrc
config_file: .eslintrc-hound.json

2
.nvmrc
View File

@@ -1 +1 @@
8.8.1
12.1

View File

@@ -3,22 +3,24 @@ language: node_js
cache:
yarn: true
directories:
- bower_components
install:
- yarn install
- ./node_modules/.bin/bower install
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- bower_components
install: yarn install
script:
- npm run build
- hassio/script/build_hassio
- npm run test
- xvfb-run wct
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --plugin sauce; fi
# - xvfb-run wct --module-resolution=node --npm
# - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --module-resolution=node --npm --plugin sauce; fi'
services:
- docker
before_deploy:
- 'docker pull lokalise/lokalise-cli@sha256:2198814ebddfda56ee041a4b427521757dd57f75415ea9693696a64c550cef21'
deploy:
provider: script
script: script/travis_deploy
'on':
branch: master
dist: trusty
addons:
sauce_connect: true

9
.vscode/extensions.json vendored Executable file
View File

@@ -0,0 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin"
]
}

View File

@@ -1,25 +1,31 @@
FROM node:8.2.1-alpine
FROM node:8.11.1-alpine
# install yarn
ENV PATH /root/.yarn/bin:$PATH
## Install/force base tools
RUN apk update \
&& apk add curl bash binutils tar git python3 \
&& apk add make g++ curl bash binutils tar git python2 python3 \
&& rm -rf /var/cache/apk/* \
&& /bin/bash \
&& touch ~/.bashrc \
&& curl -o- -L https://yarnpkg.com/install.sh | bash
&& touch ~/.bashrc
## Install yarn
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
## Setup the project
RUN mkdir -p /frontend
WORKDIR /frontend
ENV NODE_ENV production
COPY package.json yarn.lock ./
COPY package.json ./
RUN yarn
COPY bower.json ./
RUN ./node_modules/.bin/bower install --allow-root
RUN yarn install --frozen-lockfile
COPY . .
CMD [ "/bin/bash", "./script/build_frontend" ]
COPY script/docker_entrypoint.sh /usr/bin/docker_entrypoint.sh
RUN chmod +x /usr/bin/docker_entrypoint.sh
CMD [ "docker_entrypoint.sh" ]

View File

@@ -1,4 +1,5 @@
include README.md
include LICENSE.md
graft hass_frontend
graft hass_frontend_es5
recursive-exclude * *.py[co]

View File

@@ -1,17 +1,33 @@
# Home Assistant Polymer [![Build Status](https://travis-ci.org/home-assistant/home-assistant-polymer.svg?branch=master)](https://travis-ci.org/home-assistant/home-assistant-polymer)
This is the repository for the official [Home Assistant](https://home-assistant.io) frontend. The frontend is built on top of the following technologies:
* [Websockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API)
* [Polymer](https://www.polymer-project.org/)
* [Rollup](http://rollupjs.org/) to package Home Assistant JS
* [Bower](https://bower.io) for Polymer package management
This is the repository for the official [Home Assistant](https://home-assistant.io) frontend.
[![Screenshot of the frontend](https://raw.githubusercontent.com/home-assistant/home-assistant-polymer/master/docs/screenshot.png)](https://home-assistant.io/demo/)
[View demo of the Polymer frontend](https://home-assistant.io/demo/)
[More information about Home Assistant](https://home-assistant.io)
[Frontend development instructions](https://home-assistant.io/developers/frontend/)
- [View demo of the Polymer frontend](https://home-assistant.io/demo/)
- [More information about Home Assistant](https://home-assistant.io)
- [Frontend development instructions](https://developers.home-assistant.io/docs/en/frontend_index.html)
## Development
- Initial setup: `script/setup`
- Development: [Instructions](https://developers.home-assistant.io/docs/en/frontend_development.html)
- Production build: `script/build_frontend`
- Gallery: `cd gallery && script/develop_gallery`
- Hass.io: [Instructions](https://developers.home-assistant.io/docs/en/hassio_hass.html)
## Frontend development
### Classic environment
A complete guide can be found at the following [link](https://www.home-assistant.io/developers/frontend/). It describes a short guide for the build of project.
### Docker environment
It is possible to compile the project and/or run commands in the development environment having only the [Docker](https://www.docker.com) pre-installed in the system. On the root of project you can do:
* `sh ./script/docker_run.sh build` Build all the project with one command
* `sh ./script/docker_run.sh bash` Open an interactive shell (the same environment generated by the *classic environment*) where you can run commands. This bash work on your project directory and any change on your file is automatically present within your build bash.
**Note**: if you have installed `npm` in addition to the `docker`, you can use the commands `npm run docker_build` and `npm run bash` to get a full build or bash as explained above
## License
Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.

View File

@@ -0,0 +1,57 @@
# https://dev.azure.com/home-assistant
trigger:
batch: true
tags:
include:
- "*"
pr: none
variables:
- name: versionBuilder
value: "5.2"
- group: github
- group: twine
stages:
- stage: "Validate"
jobs:
- job: "VersionValidate"
pool:
vmImage: "ubuntu-latest"
steps:
- task: UsePythonVersion@0
displayName: "Use Python 3.7"
inputs:
versionSpec: "3.7"
- script: |
setup_version="$(python setup.py -V)"
branch_version="$(Build.SourceBranchName)"
if [ "${setup_version}" != "${branch_version}" ]; then
echo "Version of tag ${branch_version} don't match with ${setup_version}!"
exit 1
fi
displayName: "Check version of branch/tag"
- stage: "Build"
jobs:
- job: "ReleasePython"
pool:
vmImage: "ubuntu-latest"
steps:
- task: UsePythonVersion@0
displayName: "Use Python 3.7"
inputs:
versionSpec: "3.7"
- task: NodeTool@0
displayName: "Use Node 12.1"
inputs:
versionSpec: "12.1"
- script: pip install twine wheel
displayName: "Install tools"
- script: |
export TWINE_USERNAME="$(twineUser)"
export TWINE_PASSWORD="$(twinePassword)"
script/release
displayName: "Build and release package"

View File

@@ -1,62 +0,0 @@
{
"name": "home-assistant",
"version": "0.1.0",
"authors": [
"Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>"
],
"main": "src/home-assistant.html",
"license": "MIT",
"private": true,
"dependencies": {
"app-layout": "^2.0.0",
"app-localize-behavior": "PolymerElements/app-localize-behavior#~2.0.0",
"app-route": "PolymerElements/app-route#^2.0.0",
"app-storage": "^2.0.2",
"fecha": "~2.3.0",
"font-roboto-local": "~1.0.1",
"font-roboto": "PolymerElements/font-roboto-local#~1.0.1",
"google-apis": "GoogleWebComponents/google-apis#~2.0.0",
"iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^2.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.0",
"iron-icon": "PolymerElements/iron-icon#^2.0.0",
"iron-image": "PolymerElements/iron-image#^2.1.1",
"iron-input": "PolymerElements/iron-input#^2.0.0",
"iron-media-query": "PolymerElements/iron-media-query#^2.0.0",
"iron-pages": "PolymerElements/iron-pages#^2.0.0",
"leaflet": "^1.0.2",
"neon-animation": "PolymerElements/neon-animation#^2.0.1",
"paper-button": "PolymerElements/paper-button#^2.0.0",
"paper-card": "PolymerElements/paper-card#^2.0.0",
"paper-checkbox": "PolymerElements/paper-checkbox#^2.0.0",
"paper-dialog": "PolymerElements/paper-dialog#^2.0.0",
"paper-dialog-scrollable": "PolymerElements/paper-dialog-scrollable#^2.1.0",
"paper-drawer-panel": "PolymerElements/paper-drawer-panel#^2.0.0",
"paper-dropdown-menu": "PolymerElements/paper-dropdown-menu#^2.0.0",
"paper-fab": "PolymerElements/paper-fab#^2.0.0",
"paper-icon-button": "PolymerElements/paper-icon-button#^2.0.0",
"paper-input": "PolymerElements/paper-input#^2.0.1",
"paper-item": "PolymerElements/paper-item#^2.0.0",
"paper-listbox": "PolymerElements/paper-listbox#^2.0.0",
"paper-material": "PolymerElements/paper-material#^2.0.0",
"paper-menu-button": "PolymerElements/paper-menu-button#^2.0.0",
"paper-progress": "PolymerElements/paper-progress#^2.0.1",
"paper-radio-button": "PolymerElements/paper-radio-button#^2.0.0",
"paper-radio-group": "PolymerElements/paper-radio-group#^2.0.0",
"paper-scroll-header-panel": "~2.0.0",
"paper-slider": "PolymerElements/paper-slider#^2.0.1",
"paper-spinner": "PolymerElements/paper-spinner#^2.0.0",
"paper-styles": "PolymerElements/paper-styles#^2.0.0",
"paper-tabs": "PolymerElements/paper-tabs#^2.0.0",
"paper-time-input": "ryanburns23/paper-time-input#^2.0.4",
"paper-toast": "PolymerElements/paper-toast#^2.0.0",
"paper-toggle-button": "PolymerElements/paper-toggle-button#^2.0.0",
"polymer": "^2.1.1",
"vaadin-combo-box": "vaadin/vaadin-combo-box#^2.0.0",
"vaadin-date-picker": "vaadin/vaadin-date-picker#^2.0.0",
"web-animations-js": "^2.2.5",
"webcomponentsjs": "^1.0.10"
},
"devDependencies": {
"web-component-tester": "^6.3.0"
}
}

7
build-scripts/.eslintrc Normal file
View File

@@ -0,0 +1,7 @@
{
"rules": {
"import/no-extraneous-dependencies": 0,
"no-restricted-syntax": 0,
"no-console": 0
}
}

View File

@@ -0,0 +1,7 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": 0,
"global-require": 0
}
}

48
build-scripts/babel.js Normal file
View File

@@ -0,0 +1,48 @@
module.exports.babelLoaderConfig = ({ latestBuild }) => {
if (latestBuild === undefined) {
throw Error("latestBuild not defined for babel loader config");
}
return {
test: /\.m?js$|\.tsx?$/,
use: {
loader: "babel-loader",
options: {
presets: [
!latestBuild && [
require("@babel/preset-env").default,
{ modules: false },
],
[
require("@babel/preset-typescript").default,
{
jsxPragma: "h",
},
],
].filter(Boolean),
plugins: [
// Part of ES2018. Converts {...a, b: 2} to Object.assign({}, a, {b: 2})
[
"@babel/plugin-proposal-object-rest-spread",
{ loose: true, useBuiltIns: true },
],
// Only support the syntax, Webpack will handle it.
"@babel/syntax-dynamic-import",
[
"@babel/transform-react-jsx",
{
pragma: "h",
},
],
[
require("@babel/plugin-proposal-decorators").default,
{ decoratorsBeforeExport: true },
],
[
require("@babel/plugin-proposal-class-properties").default,
{ loose: true },
],
],
},
},
};
};

51
build-scripts/gulp/app.js Normal file
View File

@@ -0,0 +1,51 @@
// Run HA develop mode
const gulp = require("gulp");
require("./clean.js");
require("./translations.js");
require("./gen-icons.js");
require("./gather-static.js");
require("./webpack.js");
require("./service-worker.js");
require("./entry-html.js");
gulp.task(
"develop-app",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "development";
},
"clean",
gulp.parallel(
"gen-service-worker-dev",
"gen-icons",
"gen-pages-dev",
"gen-index-app-dev",
gulp.series("create-test-translation", "build-translations")
),
"copy-static",
"webpack-watch-app"
)
);
gulp.task(
"build-app",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "production";
},
"clean",
gulp.parallel("gen-icons", "build-translations"),
"copy-static",
gulp.parallel(
"webpack-prod-app",
// Do not compress static files in CI, it's SLOW.
...(process.env.CI === "true" ? [] : ["compress-static"])
),
gulp.parallel(
"gen-pages-prod",
"gen-index-app-prod",
"gen-service-worker-prod"
)
)
);

View File

@@ -0,0 +1,17 @@
const del = require("del");
const gulp = require("gulp");
const config = require("../paths");
require("./translations");
gulp.task(
"clean",
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
return del([config.root, config.build_dir]);
})
);
gulp.task(
"clean-demo",
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
return del([config.demo_root, config.build_dir]);
})
);

View File

@@ -0,0 +1,42 @@
// Run HA develop mode
const gulp = require("gulp");
require("./clean.js");
require("./translations.js");
require("./gen-icons.js");
require("./gather-static.js");
require("./webpack.js");
require("./service-worker.js");
require("./entry-html.js");
gulp.task(
"develop-demo",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "development";
},
"clean-demo",
gulp.parallel(
"gen-icons",
"gen-icons-demo",
"gen-index-demo-dev",
"build-translations"
),
"copy-static-demo",
"webpack-dev-server-demo"
)
);
gulp.task(
"build-demo",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "production";
},
"clean-demo",
gulp.parallel("gen-icons", "gen-icons-demo", "build-translations"),
"copy-static-demo",
"webpack-prod-demo",
"gen-index-demo-prod"
)
);

View File

@@ -0,0 +1,163 @@
// Tasks to generate entry HTML
/* eslint-disable import/no-dynamic-require */
/* eslint-disable global-require */
const gulp = require("gulp");
const fs = require("fs-extra");
const path = require("path");
const template = require("lodash.template");
const minify = require("html-minifier").minify;
const config = require("../paths.js");
const templatePath = (tpl) =>
path.resolve(config.polymer_dir, "src/html/", `${tpl}.html.template`);
const demoTemplatePath = (tpl) =>
path.resolve(config.demo_dir, "src/html/", `${tpl}.html.template`);
const readFile = (pth) => fs.readFileSync(pth).toString();
const renderTemplate = (pth, data = {}, pathFunc = templatePath) => {
const compiled = template(readFile(pathFunc(pth)));
return compiled({ ...data, renderTemplate });
};
const renderDemoTemplate = (pth, data = {}) =>
renderTemplate(pth, data, demoTemplatePath);
const minifyHtml = (content) =>
minify(content, {
collapseWhitespace: true,
minifyJS: true,
minifyCSS: true,
removeComments: true,
});
const PAGES = ["onboarding", "authorize"];
gulp.task("gen-pages-dev", (done) => {
for (const page of PAGES) {
const content = renderTemplate(page, {
latestPageJS: `/frontend_latest/${page}.js`,
latestHassIconsJS: "/frontend_latest/hass-icons.js",
es5Compatibility: "/frontend_es5/compatibility.js",
es5PageJS: `/frontend_es5/${page}.js`,
es5HassIconsJS: "/frontend_es5/hass-icons.js",
});
fs.outputFileSync(path.resolve(config.root, `${page}.html`), content);
}
done();
});
gulp.task("gen-pages-prod", (done) => {
const latestManifest = require(path.resolve(config.output, "manifest.json"));
const es5Manifest = require(path.resolve(config.output_es5, "manifest.json"));
for (const page of PAGES) {
const content = renderTemplate(page, {
latestPageJS: latestManifest[`${page}.js`],
latestHassIconsJS: latestManifest["hass-icons.js"],
es5Compatibility: es5Manifest["compatibility.js"],
es5PageJS: es5Manifest[`${page}.js`],
es5HassIconsJS: es5Manifest["hass-icons.js"],
});
fs.outputFileSync(
path.resolve(config.root, `${page}.html`),
minifyHtml(content)
);
}
done();
});
gulp.task("gen-index-app-dev", (done) => {
// In dev mode we don't mangle names, so we hardcode urls. That way we can
// run webpack as last in watch mode, which blocks output.
const content = renderTemplate("index", {
latestAppJS: "/frontend_latest/app.js",
latestCoreJS: "/frontend_latest/core.js",
latestCustomPanelJS: "/frontend_latest/custom-panel.js",
latestHassIconsJS: "/frontend_latest/hass-icons.js",
es5Compatibility: "/frontend_es5/compatibility.js",
es5AppJS: "/frontend_es5/app.js",
es5CoreJS: "/frontend_es5/core.js",
es5CustomPanelJS: "/frontend_es5/custom-panel.js",
es5HassIconsJS: "/frontend_es5/hass-icons.js",
}).replace(/#THEMEC/g, "{{ theme_color }}");
fs.outputFileSync(path.resolve(config.root, "index.html"), content);
done();
});
gulp.task("gen-index-app-prod", (done) => {
const latestManifest = require(path.resolve(config.output, "manifest.json"));
const es5Manifest = require(path.resolve(config.output_es5, "manifest.json"));
const content = renderTemplate("index", {
latestAppJS: latestManifest["app.js"],
latestCoreJS: latestManifest["core.js"],
latestCustomPanelJS: latestManifest["custom-panel.js"],
latestHassIconsJS: latestManifest["hass-icons.js"],
es5Compatibility: es5Manifest["compatibility.js"],
es5AppJS: es5Manifest["app.js"],
es5CoreJS: es5Manifest["core.js"],
es5CustomPanelJS: es5Manifest["custom-panel.js"],
es5HassIconsJS: es5Manifest["hass-icons.js"],
});
const minified = minifyHtml(content).replace(/#THEMEC/g, "{{ theme_color }}");
fs.outputFileSync(path.resolve(config.root, "index.html"), minified);
done();
});
gulp.task("gen-index-demo-dev", (done) => {
// In dev mode we don't mangle names, so we hardcode urls. That way we can
// run webpack as last in watch mode, which blocks output.
const content = renderDemoTemplate("index", {
latestDemoJS: "/frontend_latest/main.js",
es5Compatibility: "/frontend_es5/compatibility.js",
es5DemoJS: "/frontend_es5/main.js",
});
fs.outputFileSync(path.resolve(config.demo_root, "index.html"), content);
done();
});
gulp.task("gen-index-demo-dev", (done) => {
// In dev mode we don't mangle names, so we hardcode urls. That way we can
// run webpack as last in watch mode, which blocks output.
const content = renderDemoTemplate("index", {
latestDemoJS: "/frontend_latest/main.js",
es5Compatibility: "/frontend_es5/compatibility.js",
es5DemoJS: "/frontend_es5/main.js",
});
fs.outputFileSync(path.resolve(config.demo_root, "index.html"), content);
done();
});
gulp.task("gen-index-demo-prod", (done) => {
const latestManifest = require(path.resolve(
config.demo_output,
"manifest.json"
));
const es5Manifest = require(path.resolve(
config.demo_output_es5,
"manifest.json"
));
const content = renderDemoTemplate("index", {
latestDemoJS: latestManifest["main.js"],
es5Compatibility: es5Manifest["compatibility.js"],
es5DemoJS: es5Manifest["main.js"],
});
const minified = minifyHtml(content).replace(/#THEMEC/g, "{{ theme_color }}");
fs.outputFileSync(path.resolve(config.demo_root, "index.html"), minified);
done();
});

View File

@@ -0,0 +1,116 @@
// Gulp task to gather all static files.
const gulp = require("gulp");
const path = require("path");
const cpx = require("cpx");
const fs = require("fs-extra");
const zopfli = require("gulp-zopfli-green");
const merge = require("merge-stream");
const paths = require("../paths");
const npmPath = (...parts) =>
path.resolve(paths.polymer_dir, "node_modules", ...parts);
const polyPath = (...parts) => path.resolve(paths.polymer_dir, ...parts);
const copyFileDir = (fromFile, toDir) =>
fs.copySync(fromFile, path.join(toDir, path.basename(fromFile)));
const genStaticPath = (staticDir) => (...parts) =>
path.resolve(staticDir, ...parts);
function copyTranslations(staticDir) {
const staticPath = genStaticPath(staticDir);
// Translation output
fs.copySync(
polyPath("build-translations/output"),
staticPath("translations")
);
}
function copyPolyfills(staticDir) {
const staticPath = genStaticPath(staticDir);
// Web Component polyfills and adapters
copyFileDir(
npmPath("@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"),
staticPath("polyfills/")
);
copyFileDir(
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js"),
staticPath("polyfills/")
);
copyFileDir(
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js.map"),
staticPath("polyfills/")
);
}
function copyFonts(staticDir) {
const staticPath = genStaticPath(staticDir);
// Local fonts
cpx.copySync(
npmPath("roboto-fontface/fonts/roboto/*.woff2"),
staticPath("fonts/roboto")
);
}
function copyMapPanel(staticDir) {
const staticPath = genStaticPath(staticDir);
copyFileDir(
npmPath("leaflet/dist/leaflet.css"),
staticPath("images/leaflet/")
);
fs.copySync(
npmPath("leaflet/dist/images"),
staticPath("images/leaflet/images/")
);
}
function compressStatic(staticDir) {
const staticPath = genStaticPath(staticDir);
const polyfills = gulp
.src(staticPath("polyfills/*.js"))
.pipe(zopfli())
.pipe(gulp.dest(staticPath("polyfills")));
const translations = gulp
.src(staticPath("translations/*.json"))
.pipe(zopfli())
.pipe(gulp.dest(staticPath("translations")));
return merge(polyfills, translations);
}
gulp.task("copy-static", (done) => {
const staticDir = paths.static;
const staticPath = genStaticPath(paths.static);
// Basic static files
fs.copySync(polyPath("public"), paths.root);
copyPolyfills(staticDir);
copyFonts(staticDir);
copyTranslations(staticDir);
// Panel assets
copyFileDir(
npmPath("react-big-calendar/lib/css/react-big-calendar.css"),
staticPath("panels/calendar/")
);
copyMapPanel(staticDir);
done();
});
gulp.task("compress-static", () => compressStatic(paths.static));
gulp.task("copy-static-demo", (done) => {
// Copy app static files
fs.copySync(polyPath("public"), paths.demo_root);
// Copy demo static files
fs.copySync(path.resolve(paths.demo_dir, "public"), paths.demo_root);
copyPolyfills(paths.demo_static);
copyMapPanel(paths.demo_static);
copyFonts(paths.demo_static);
copyTranslations(paths.demo_static);
done();
});

View File

@@ -0,0 +1,136 @@
const gulp = require("gulp");
const path = require("path");
const fs = require("fs");
const paths = require("../paths");
const ICON_PACKAGE_PATH = path.resolve(
__dirname,
"../../node_modules/@mdi/svg/"
);
const META_PATH = path.resolve(ICON_PACKAGE_PATH, "meta.json");
const ICON_PATH = path.resolve(ICON_PACKAGE_PATH, "svg");
const OUTPUT_DIR = path.resolve(__dirname, "../../build");
const MDI_OUTPUT_PATH = path.resolve(OUTPUT_DIR, "mdi.html");
const HASS_OUTPUT_PATH = path.resolve(OUTPUT_DIR, "hass-icons.html");
const BUILT_IN_PANEL_ICONS = [
"calendar", // Calendar
"settings", // Config
"home-assistant", // Hass.io
"poll-box", // History panel
"format-list-bulleted-type", // Logbook
"mailbox", // Mailbox
"tooltip-account", // Map
"cart", // Shopping List
"hammer", // developer-tools
];
// Given an icon name, load the SVG file
function loadIcon(name) {
const iconPath = path.resolve(ICON_PATH, `${name}.svg`);
try {
return fs.readFileSync(iconPath, "utf-8");
} catch (err) {
return null;
}
}
// Given an SVG file, convert it to an iron-iconset-svg definition
function transformXMLtoPolymer(name, xml) {
const start = xml.indexOf("><path") + 1;
const end = xml.length - start - 6;
const pth = xml.substr(start, end);
return `<g id="${name}">${pth}</g>`;
}
// Given an iconset name and icon names, generate a polymer iconset
function generateIconset(iconsetName, iconNames) {
const iconDefs = Array.from(iconNames)
.map((name) => {
const iconDef = loadIcon(name);
if (!iconDef) {
throw new Error(`Unknown icon referenced: ${name}`);
}
return transformXMLtoPolymer(name, iconDef);
})
.join("");
return `<ha-iconset-svg name="${iconsetName}" size="24"><svg><defs>${iconDefs}</defs></svg></ha-iconset-svg>`;
}
// Generate the full MDI iconset
function genMDIIcons() {
const meta = JSON.parse(
fs.readFileSync(path.resolve(ICON_PACKAGE_PATH, META_PATH), "UTF-8")
);
const iconNames = meta.map((iconInfo) => iconInfo.name);
if (!fs.existsSync(OUTPUT_DIR)) {
fs.mkdirSync(OUTPUT_DIR);
}
fs.writeFileSync(MDI_OUTPUT_PATH, generateIconset("mdi", iconNames));
}
// Helper function to map recursively over files in a folder and it's subfolders
function mapFiles(startPath, filter, mapFunc) {
const files = fs.readdirSync(startPath);
for (let i = 0; i < files.length; i++) {
const filename = path.join(startPath, files[i]);
const stat = fs.lstatSync(filename);
if (stat.isDirectory()) {
mapFiles(filename, filter, mapFunc);
} else if (filename.indexOf(filter) >= 0) {
mapFunc(filename);
}
}
}
// Find all icons used by the project.
function findIcons(searchPath, iconsetName) {
const iconRegex = new RegExp(`${iconsetName}:[\\w-]+`, "g");
const icons = new Set();
function processFile(filename) {
const content = fs.readFileSync(filename);
let match;
// eslint-disable-next-line
while ((match = iconRegex.exec(content))) {
// strip off "hass:" and add to set
icons.add(match[0].substr(iconsetName.length + 1));
}
}
mapFiles(searchPath, ".js", processFile);
mapFiles(searchPath, ".ts", processFile);
return icons;
}
function genHassIcons() {
const iconNames = findIcons("./src", "hass");
BUILT_IN_PANEL_ICONS.forEach((name) => iconNames.add(name));
if (!fs.existsSync(OUTPUT_DIR)) {
fs.mkdirSync(OUTPUT_DIR);
}
fs.writeFileSync(HASS_OUTPUT_PATH, generateIconset("hass", iconNames));
}
gulp.task("gen-icons-mdi", (done) => {
genMDIIcons();
done();
});
gulp.task("gen-icons-hass", (done) => {
genHassIcons();
done();
});
gulp.task("gen-icons", gulp.series("gen-icons-hass", "gen-icons-mdi"));
gulp.task("gen-icons-demo", (done) => {
const iconNames = findIcons(path.resolve(paths.demo_dir, "./src"), "hademo");
fs.writeFileSync(
path.resolve(paths.demo_dir, "hademo-icons.html"),
generateIconset("hademo", iconNames)
);
done();
});
module.exports = {
findIcons,
generateIconset,
genMDIIcons,
};

View File

@@ -0,0 +1,33 @@
// Generate service worker.
// Based on manifest, create a file with the content as service_worker.js
/* eslint-disable import/no-dynamic-require */
/* eslint-disable global-require */
const gulp = require("gulp");
const path = require("path");
const fs = require("fs-extra");
const config = require("../paths.js");
const swPath = path.resolve(config.root, "service_worker.js");
const writeSW = (content) => fs.outputFileSync(swPath, content.trim() + "\n");
gulp.task("gen-service-worker-dev", (done) => {
writeSW(
`
console.debug('Service worker disabled in development');
self.addEventListener('install', (event) => {
self.skipWaiting();
});
`
);
done();
});
gulp.task("gen-service-worker-prod", (done) => {
fs.copySync(
path.resolve(config.output, "service_worker.js"),
path.resolve(config.root, "service_worker.js")
);
done();
});

View File

@@ -0,0 +1,404 @@
const del = require("del");
const path = require("path");
const gulp = require("gulp");
const fs = require("fs");
const foreach = require("gulp-foreach");
const hash = require("gulp-hash");
const hashFilename = require("gulp-hash-filename");
const merge = require("gulp-merge-json");
const minify = require("gulp-jsonminify");
const rename = require("gulp-rename");
const transform = require("gulp-json-transform");
const inDir = "translations";
const workDir = "build-translations";
const fullDir = workDir + "/full";
const coreDir = workDir + "/core";
const outDir = workDir + "/output";
String.prototype.rsplit = function(sep, maxsplit) {
var split = this.split(sep);
return maxsplit
? [split.slice(0, -maxsplit).join(sep)].concat(split.slice(-maxsplit))
: split;
};
// Panel translations which should be split from the core translations. These
// should mirror the fragment definitions in polymer.json, so that we load
// additional resources at equivalent points.
const TRANSLATION_FRAGMENTS = [
"config",
"history",
"logbook",
"mailbox",
"profile",
"shopping-list",
"page-authorize",
"page-demo",
"page-onboarding",
"developer-tools",
];
const tasks = [];
function recursiveFlatten(prefix, data) {
let output = {};
Object.keys(data).forEach(function(key) {
if (typeof data[key] === "object") {
output = Object.assign(
{},
output,
recursiveFlatten(prefix + key + ".", data[key])
);
} else {
output[prefix + key] = data[key];
}
});
return output;
}
function flatten(data) {
return recursiveFlatten("", data);
}
function emptyFilter(data) {
const newData = {};
Object.keys(data).forEach((key) => {
if (data[key]) {
if (typeof data[key] === "object") {
newData[key] = emptyFilter(data[key]);
} else {
newData[key] = data[key];
}
}
});
return newData;
}
function recursiveEmpty(data) {
const newData = {};
Object.keys(data).forEach((key) => {
if (data[key]) {
if (typeof data[key] === "object") {
newData[key] = recursiveEmpty(data[key]);
} else {
newData[key] = "TRANSLATED";
}
}
});
return newData;
}
/**
* Replace Lokalise key placeholders with their actual values.
*
* We duplicate the behavior of Lokalise here so that placeholders can
* be included in src/translations/en.json, but still be usable while
* developing locally.
*
* @link https://docs.lokalise.co/article/KO5SZWLLsy-key-referencing
*/
const re_key_reference = /\[%key:([^%]+)%\]/;
function lokalise_transform(data, original) {
const output = {};
Object.entries(data).forEach(([key, value]) => {
if (value instanceof Object) {
output[key] = lokalise_transform(value, original);
} else {
output[key] = value.replace(re_key_reference, (match, key) => {
const replace = key.split("::").reduce((tr, k) => tr[k], original);
if (typeof replace !== "string") {
throw Error(
`Invalid key placeholder ${key} in src/translations/en.json`
);
}
return replace;
});
}
});
return output;
}
let taskName = "clean-translations";
gulp.task(taskName, function() {
return del([`${outDir}/**/*.json`]);
});
tasks.push(taskName);
gulp.task("ensure-translations-build-dir", (done) => {
if (!fs.existsSync(workDir)) {
fs.mkdirSync(workDir);
}
done();
});
taskName = "create-test-metadata";
gulp.task(
taskName,
gulp.series("ensure-translations-build-dir", function writeTestMetaData(cb) {
fs.writeFile(
workDir + "/testMetadata.json",
JSON.stringify({
test: {
nativeName: "Test",
},
}),
cb
);
})
);
tasks.push(taskName);
taskName = "create-test-translation";
gulp.task(
taskName,
gulp.series("create-test-metadata", function() {
return gulp
.src("src/translations/en.json")
.pipe(
transform(function(data, file) {
return recursiveEmpty(data);
})
)
.pipe(rename("test.json"))
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
/**
* This task will build a master translation file, to be used as the base for
* all languages. This starts with src/translations/en.json, and replaces all
* Lokalise key placeholders with their target values. Under normal circumstances,
* this will be the same as translations/en.json However, we build it here to
* facilitate both making changes in development mode, and to ensure that the
* project is buildable immediately after merging new translation keys, since
* the Lokalise update to translations/en.json will not happen immediately.
*/
taskName = "build-master-translation";
gulp.task(
taskName,
gulp.series("clean-translations", function() {
return gulp
.src("src/translations/en.json")
.pipe(
transform(function(data, file) {
return lokalise_transform(data, data);
})
)
.pipe(rename("translationMaster.json"))
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
taskName = "build-merged-translations";
gulp.task(
taskName,
gulp.series("build-master-translation", function() {
return gulp
.src([inDir + "/*.json", workDir + "/test.json"], { allowEmpty: true })
.pipe(
foreach(function(stream, file) {
// For each language generate a merged json file. It begins with the master
// translation as a failsafe for untranslated strings, and merges all parent
// tags into one file for each specific subtag
//
// TODO: This is a naive interpretation of BCP47 that should be improved.
// Will be OK for now as long as we don't have anything more complicated
// than a base translation + region.
const tr = path.basename(file.history[0], ".json");
const subtags = tr.split("-");
const src = [workDir + "/translationMaster.json"];
for (let i = 1; i <= subtags.length; i++) {
const lang = subtags.slice(0, i).join("-");
if (lang === "test") {
src.push(workDir + "/test.json");
} else {
src.push(inDir + "/" + lang + ".json");
}
}
return gulp
.src(src, { allowEmpty: true })
.pipe(transform((data) => emptyFilter(data)))
.pipe(
merge({
fileName: tr + ".json",
})
)
.pipe(gulp.dest(fullDir));
})
);
})
);
tasks.push(taskName);
const splitTasks = [];
TRANSLATION_FRAGMENTS.forEach((fragment) => {
taskName = "build-translation-fragment-" + fragment;
gulp.task(
taskName,
gulp.series("build-merged-translations", function() {
// Return only the translations for this fragment.
return gulp
.src(fullDir + "/*.json")
.pipe(
transform((data) => ({
ui: {
panel: {
[fragment]: data.ui.panel[fragment],
},
},
}))
)
.pipe(gulp.dest(workDir + "/" + fragment));
})
);
tasks.push(taskName);
splitTasks.push(taskName);
});
taskName = "build-translation-core";
gulp.task(
taskName,
gulp.series("build-merged-translations", function() {
// Remove the fragment translations from the core translation.
return gulp
.src(fullDir + "/*.json")
.pipe(
transform((data) => {
TRANSLATION_FRAGMENTS.forEach((fragment) => {
delete data.ui.panel[fragment];
});
return data;
})
)
.pipe(gulp.dest(coreDir));
})
);
tasks.push(taskName);
splitTasks.push(taskName);
taskName = "build-flattened-translations";
gulp.task(
taskName,
gulp.series(...splitTasks, function() {
// Flatten the split versions of our translations, and move them into outDir
return gulp
.src(
TRANSLATION_FRAGMENTS.map(
(fragment) => workDir + "/" + fragment + "/*.json"
).concat(coreDir + "/*.json"),
{ base: workDir }
)
.pipe(
transform(function(data) {
// Polymer.AppLocalizeBehavior requires flattened json
return flatten(data);
})
)
.pipe(minify())
.pipe(hashFilename())
.pipe(
rename((filePath) => {
if (filePath.dirname === "core") {
filePath.dirname = "";
}
})
)
.pipe(gulp.dest(outDir));
})
);
tasks.push(taskName);
taskName = "build-translation-fingerprints";
gulp.task(
taskName,
gulp.series("build-flattened-translations", function() {
return gulp
.src(outDir + "/**/*.json")
.pipe(
rename({
extname: "",
})
)
.pipe(
hash({
algorithm: "md5",
hashLength: 32,
template: "<%= name %>.json",
})
)
.pipe(hash.manifest("translationFingerprints.json"))
.pipe(
transform(function(data) {
// After generating fingerprints of our translation files, consolidate
// all translation fragment fingerprints under the translation name key
const newData = {};
Object.entries(data).forEach(([key, value]) => {
const [path, _md5] = key.rsplit("-", 1);
// let translation = key;
let translation = path;
const parts = translation.split("/");
if (parts.length === 2) {
translation = parts[1];
}
if (!(translation in newData)) {
newData[translation] = {
fingerprints: {},
};
}
newData[translation].fingerprints[path] = value;
});
return newData;
})
)
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
taskName = "build-translations";
gulp.task(
taskName,
gulp.series("build-translation-fingerprints", function() {
return gulp
.src(
[
"src/translations/translationMetadata.json",
workDir + "/testMetadata.json",
workDir + "/translationFingerprints.json",
],
{ allowEmpty: true }
)
.pipe(merge({}))
.pipe(
transform(function(data) {
const newData = {};
Object.entries(data).forEach(([key, value]) => {
// Filter out translations without native name.
if (data[key].nativeName) {
newData[key] = data[key];
} else {
console.warn(
`Skipping language ${key}. Native name was not translated.`
);
}
if (data[key]) newData[key] = value;
});
return newData;
})
)
.pipe(
transform((data) => ({
fragments: TRANSLATION_FRAGMENTS,
translations: data,
}))
)
.pipe(rename("translationMetadata.json"))
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
module.exports = tasks;

View File

@@ -0,0 +1,116 @@
// Tasks to run webpack.
const gulp = require("gulp");
const path = require("path");
const webpack = require("webpack");
const WebpackDevServer = require("webpack-dev-server");
const log = require("fancy-log");
const paths = require("../paths");
const { createAppConfig, createDemoConfig } = require("../webpack");
const handler = (done) => (err, stats) => {
if (err) {
console.log(err.stack || err);
if (err.details) {
console.log(err.details);
}
return;
}
log(`Build done @ ${new Date().toLocaleTimeString()}`);
if (stats.hasErrors() || stats.hasWarnings()) {
console.log(stats.toString("minimal"));
}
if (done) {
done();
}
};
gulp.task("webpack-watch-app", () => {
const compiler = webpack([
createAppConfig({
isProdBuild: false,
latestBuild: true,
isStatsBuild: false,
}),
createAppConfig({
isProdBuild: false,
latestBuild: false,
isStatsBuild: false,
}),
]);
compiler.watch({}, handler());
// we are not calling done, so this command will run forever
});
gulp.task(
"webpack-prod-app",
() =>
new Promise((resolve) =>
webpack(
[
createAppConfig({
isProdBuild: true,
latestBuild: true,
isStatsBuild: false,
}),
createAppConfig({
isProdBuild: true,
latestBuild: false,
isStatsBuild: false,
}),
],
handler(resolve)
)
)
);
gulp.task("webpack-dev-server-demo", () => {
const compiler = webpack([
createDemoConfig({
isProdBuild: false,
latestBuild: false,
isStatsBuild: false,
}),
createDemoConfig({
isProdBuild: false,
latestBuild: true,
isStatsBuild: false,
}),
]);
new WebpackDevServer(compiler, {
open: true,
watchContentBase: true,
contentBase: path.resolve(paths.demo_dir, "dist"),
}).listen(8080, "localhost", function(err) {
if (err) {
throw err;
}
// Server listening
log("[webpack-dev-server]", "http://localhost:8080");
});
});
gulp.task(
"webpack-prod-demo",
() =>
new Promise((resolve) =>
webpack(
[
createDemoConfig({
isProdBuild: true,
latestBuild: false,
isStatsBuild: false,
}),
createDemoConfig({
isProdBuild: true,
latestBuild: true,
isStatsBuild: false,
}),
],
handler(resolve)
)
)
);

17
build-scripts/paths.js Normal file
View File

@@ -0,0 +1,17 @@
var path = require("path");
module.exports = {
polymer_dir: path.resolve(__dirname, ".."),
build_dir: path.resolve(__dirname, "../build"),
root: path.resolve(__dirname, "../hass_frontend"),
static: path.resolve(__dirname, "../hass_frontend/static"),
output: path.resolve(__dirname, "../hass_frontend/frontend_latest"),
output_es5: path.resolve(__dirname, "../hass_frontend/frontend_es5"),
demo_dir: path.resolve(__dirname, "../demo"),
demo_root: path.resolve(__dirname, "../demo/dist"),
demo_static: path.resolve(__dirname, "../demo/dist/static"),
demo_output: path.resolve(__dirname, "../demo/dist/frontend_latest"),
demo_output_es5: path.resolve(__dirname, "../demo/dist/frontend_es5"),
};

223
build-scripts/webpack.js Normal file
View File

@@ -0,0 +1,223 @@
const webpack = require("webpack");
const fs = require("fs");
const path = require("path");
const TerserPlugin = require("terser-webpack-plugin");
const WorkboxPlugin = require("workbox-webpack-plugin");
const CompressionPlugin = require("compression-webpack-plugin");
const zopfli = require("@gfx/zopfli");
const ManifestPlugin = require("webpack-manifest-plugin");
const paths = require("./paths.js");
const { babelLoaderConfig } = require("./babel.js");
let version = fs
.readFileSync(path.resolve(paths.polymer_dir, "setup.py"), "utf8")
.match(/\d{8}\.\d+/);
if (!version) {
throw Error("Version not found");
}
version = version[0];
const genMode = (isProdBuild) => (isProdBuild ? "production" : "development");
const genDevTool = (isProdBuild) =>
isProdBuild ? "source-map" : "inline-cheap-module-source-map";
const genFilename = (isProdBuild, dontHash = new Set()) => ({ chunk }) => {
if (!isProdBuild || dontHash.has(chunk.name)) {
return `${chunk.name}.js`;
}
return `${chunk.name}.${chunk.hash.substr(0, 8)}.js`;
};
const genChunkFilename = (isProdBuild, isStatsBuild) =>
isProdBuild && !isStatsBuild ? "chunk.[chunkhash].js" : "[name].chunk.js";
const resolve = {
extensions: [".ts", ".js", ".json", ".tsx"],
alias: {
react: "preact-compat",
"react-dom": "preact-compat",
// Not necessary unless you consume a module using `createClass`
"create-react-class": "preact-compat/lib/create-react-class",
// Not necessary unless you consume a module requiring `react-dom-factories`
"react-dom-factories": "preact-compat/lib/react-dom-factories",
},
};
const cssLoader = {
test: /\.css$/,
use: "raw-loader",
};
const htmlLoader = {
test: /\.(html)$/,
use: {
loader: "html-loader",
options: {
exportAsEs6Default: true,
},
},
};
const plugins = [
// Ignore moment.js locales
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// Color.js is bloated, it contains all color definitions for all material color sets.
new webpack.NormalModuleReplacementPlugin(
/@polymer\/paper-styles\/color\.js$/,
path.resolve(paths.polymer_dir, "src/util/empty.js")
),
// Ignore roboto pointing at CDN. We use local font-roboto-local.
new webpack.NormalModuleReplacementPlugin(
/@polymer\/font-roboto\/roboto\.js$/,
path.resolve(paths.polymer_dir, "src/util/empty.js")
),
// Ignore mwc icons pointing at CDN.
new webpack.NormalModuleReplacementPlugin(
/@material\/mwc-icon\/mwc-icon-font\.js$/,
path.resolve(paths.polymer_dir, "src/util/empty.js")
),
];
const optimization = (latestBuild) => ({
minimizer: [
new TerserPlugin({
cache: true,
parallel: true,
extractComments: true,
sourceMap: true,
terserOptions: {
safari10: true,
ecma: latestBuild ? undefined : 5,
},
}),
],
});
const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
const isCI = process.env.CI === "true";
// Create an object mapping browser urls to their paths during build
const translationMetadata = require("../build-translations/translationMetadata.json");
const workBoxTranslationsTemplatedURLs = {};
const englishFP = translationMetadata["translations"]["en"]["fingerprints"];
Object.keys(englishFP).forEach((key) => {
workBoxTranslationsTemplatedURLs[
`/static/translations/${englishFP[key]}`
] = `build-translations/output/${key}.json`;
});
const entry = {
app: "./src/entrypoints/app.ts",
authorize: "./src/entrypoints/authorize.ts",
onboarding: "./src/entrypoints/onboarding.ts",
core: "./src/entrypoints/core.ts",
compatibility: "./src/entrypoints/compatibility.ts",
"custom-panel": "./src/entrypoints/custom-panel.ts",
"hass-icons": "./src/entrypoints/hass-icons.ts",
};
return {
mode: genMode(isProdBuild),
devtool: genDevTool(isProdBuild),
entry,
module: {
rules: [babelLoaderConfig({ latestBuild }), cssLoader, htmlLoader],
},
optimization: optimization(latestBuild),
plugins: [
new ManifestPlugin(),
new webpack.DefinePlugin({
__DEV__: JSON.stringify(!isProdBuild),
__DEMO__: false,
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
__VERSION__: JSON.stringify(version),
__STATIC_PATH__: "/static/",
"process.env.NODE_ENV": JSON.stringify(
isProdBuild ? "production" : "development"
),
}),
...plugins,
isProdBuild &&
!isCI &&
!isStatsBuild &&
new CompressionPlugin({
cache: true,
exclude: [/\.js\.map$/, /\.LICENSE$/, /\.py$/, /\.txt$/],
algorithm(input, compressionOptions, callback) {
return zopfli.gzip(input, compressionOptions, callback);
},
}),
latestBuild &&
new WorkboxPlugin.InjectManifest({
swSrc: "./src/entrypoints/service-worker-hass.js",
swDest: "service_worker.js",
importWorkboxFrom: "local",
include: [/\.js$/],
templatedURLs: {
...workBoxTranslationsTemplatedURLs,
"/static/icons/favicon-192x192.png":
"public/icons/favicon-192x192.png",
"/static/fonts/roboto/Roboto-Light.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff2",
"/static/fonts/roboto/Roboto-Medium.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff2",
"/static/fonts/roboto/Roboto-Regular.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff2",
"/static/fonts/roboto/Roboto-Bold.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff2",
},
}),
].filter(Boolean),
output: {
filename: genFilename(isProdBuild),
chunkFilename: genChunkFilename(isProdBuild, isStatsBuild),
path: latestBuild ? paths.output : paths.output_es5,
publicPath: latestBuild ? "/frontend_latest/" : "/frontend_es5/",
},
resolve,
};
};
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
return {
mode: genMode(isProdBuild),
devtool: genDevTool(isProdBuild),
entry: {
main: "./demo/src/entrypoint.ts",
compatibility: "./src/entrypoints/compatibility.ts",
},
module: {
rules: [babelLoaderConfig({ latestBuild }), cssLoader, htmlLoader],
},
optimization: optimization(latestBuild),
plugins: [
new ManifestPlugin(),
new webpack.DefinePlugin({
__DEV__: !isProdBuild,
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
__VERSION__: JSON.stringify("DEMO"),
__DEMO__: true,
__STATIC_PATH__: "/static/",
"process.env.NODE_ENV": JSON.stringify(
isProdBuild ? "production" : "development"
),
}),
...plugins,
].filter(Boolean),
resolve,
output: {
filename: genFilename(isProdBuild),
chunkFilename: genChunkFilename(isProdBuild, isStatsBuild),
path: path.resolve(
paths.demo_root,
latestBuild ? "frontend_latest" : "frontend_es5"
),
publicPath: latestBuild ? "/frontend_latest/" : "/frontend_es5/",
},
};
};
module.exports = {
resolve,
plugins,
optimization,
createAppConfig,
createDemoConfig,
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Some files were not shown because too many files have changed in this diff Show More