1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 10:48:44 +00:00
* 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
This commit is contained in:
Paulus Schoutsen
2018-05-16 13:47:34 -04:00
committed by GitHub
parent d1adc2fed0
commit f70c0aea6c
236 changed files with 1690 additions and 1557 deletions

View File

@@ -0,0 +1,11 @@
/** Return an icon representing an input datetime state. */
import domainIcon from './domain_icon.js';
export default function inputDateTimeIcon(state) {
if (!state.attributes.has_date) {
return 'mdi:clock';
} else if (!state.attributes.has_time) {
return 'mdi:calendar';
}
return domainIcon('input_datetime');
}