extra-map-card 1.7.0 → 1.7.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,4 +72,5 @@ export interface ExtraMapCardConfig extends LovelaceCardConfig {
72
72
  use_more_info?: boolean;
73
73
  custom_styles?: CustomStyles;
74
74
  history_period?: 'today' | 'yesterday';
75
+ show_history_control?: boolean;
75
76
  }
@@ -1,19 +1,19 @@
1
1
  import { Auth, Connection, HassConfig, HassEntities, HassEntity, HassServices, HassServiceTarget, MessageBase } from 'home-assistant-js-websocket';
2
2
  import { FrontendLocaleData } from './data/translation';
3
3
  import { Themes, ThemeSettings } from './data/ws-themes';
4
- export interface Resources {
4
+ interface Resources {
5
5
  [language: string]: Record<string, string>;
6
6
  }
7
- export interface Context {
7
+ interface Context {
8
8
  id: string;
9
9
  parent_id?: string;
10
10
  user_id?: string | null;
11
11
  }
12
- export interface ServiceCallResponse {
12
+ interface ServiceCallResponse {
13
13
  context: Context;
14
14
  response?: any;
15
15
  }
16
- export interface ServiceCallRequest {
16
+ interface ServiceCallRequest {
17
17
  domain: string;
18
18
  service: string;
19
19
  serviceData?: Record<string, any>;
@@ -68,3 +68,4 @@ export interface HomeAssistant {
68
68
  }
69
69
  /** Return if a component is loaded. */
70
70
  export declare const isComponentLoaded: (hass: HomeAssistant, component: string) => boolean;
71
+ export {};
@@ -1,7 +1,6 @@
1
1
  export * from './ha-frontend/home-assistant';
2
2
  export * from './ha-frontend/lovelace/lovelace';
3
3
  export * from './ha-frontend/fire-event';
4
- export * from './ha-frontend/data/ws-templates';
5
4
  export * from './ha-frontend/data/history';
6
5
  export * from './ha-frontend/data/translation';
7
6
  export * from './ha-frontend/common/entity/compute_domain';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-map-card",
3
- "version": "1.7.0",
3
+ "version": "1.7.2-beta.0",
4
4
  "description": "Lovelace custom map card for Home Assistant",
5
5
  "keywords": [
6
6
  "home-assistant",
@@ -79,13 +79,14 @@
79
79
  "crypto": false
80
80
  },
81
81
  "scripts": {
82
- "dev": "npm run clean && rollup -c rollup.config.js --bundleConfigAsCjs --watch",
82
+ "dev": "rollup -c rollup.config.js --bundleConfigAsCjs --watch",
83
83
  "build": "npm run clean && npm run lint && npm run rollup",
84
84
  "lint": "eslint src/**/*.ts --fix",
85
85
  "rollup": "rollup -c rollup.config.js --bundleConfigAsCjs",
86
86
  "prepare": "husky install",
87
87
  "postversion": "npm run build && git add .",
88
- "clean": "rm -rf dist",
89
- "start:hass": "docker run --rm -p8123:8123 -v ./test:/config homeassistant/home-assistant:beta"
88
+ "clean": "rm -rf dist && mkdir dist",
89
+ "start:hass": "docker run --rm --name hass -p8123:8123 -v ./test:/config homeassistant/home-assistant:beta",
90
+ "clean:cache": "rm -rf node_modules/.cache/rollup-plugin-typescript2/* && rm -rf node_modules/.cache/rollup-plugin-typescript2/rpt2_* "
90
91
  }
91
92
  }