Replace all default exports in common/ with named exports (#3790)

This commit is contained in:
Ian Richardson
2019-09-23 03:57:47 -05:00
committed by Bram Kragten
parent f871387fa6
commit 1f4d359050
129 changed files with 243 additions and 257 deletions

View File

@@ -2,7 +2,7 @@ import { HassEntity } from "home-assistant-js-websocket";
/** Return an icon representing a binary sensor state. */
export default function binarySensorIcon(state: HassEntity) {
export const binarySensorIcon = (state: HassEntity) => {
const activated = state.state && state.state === "off";
switch (state.attributes.device_class) {
case "battery":
@@ -48,4 +48,4 @@ export default function binarySensorIcon(state: HassEntity) {
default:
return activated ? "hass:radiobox-blank" : "hass:checkbox-marked-circle";
}
}
};