Skip to content

Commit

Permalink
Remove getting panels
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 6, 2018
1 parent 5ff9df7 commit a1d3692
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ Get the state of all entities. Returns a promise that will resolve to the result

Get all available services. Returns a promise that will resolve to the result of querying the server for all the services.

##### `conn.getPanels()`

Get the Home Assistant panel config. Returns a promise that will resolve to the result of querying the server for all the panels config.

##### `conn.getConfig()`

Get the Home Assistant server config. Returns a promise that will resolve to the result of querying the server for all the config.
Expand Down
5 changes: 2 additions & 3 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ export default function subscribeConfig(conn, configChanged) {

const fetchAll = () => Promise.all([
conn.getConfig(),
conn.getPanels(),
conn.getServices(),
]).then(([core, panels, services]) => {
updateConfig({ core, panels, services });
]).then(([core, services]) => {
updateConfig({ core, services });
});

const removeListener = (listener) => {
Expand Down
4 changes: 0 additions & 4 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ class Connection {
return this.sendMessagePromise(messages.services()).then(extractResult);
}

getPanels() {
return this.sendMessagePromise(messages.panels()).then(extractResult);
}

getConfig() {
return this.sendMessagePromise(messages.config()).then(extractResult);
}
Expand Down
6 changes: 0 additions & 6 deletions lib/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ export function services() {
};
}

export function panels() {
return {
type: 'get_panels',
};
}

export function callService(domain, service, serviceData) {
const message = {
type: 'call_service',
Expand Down

0 comments on commit a1d3692

Please sign in to comment.