mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Lint
This commit is contained in:
parent
6d3d194f42
commit
976d3ddc87
@ -12,7 +12,6 @@ import { computeStateName } from "../common/entity/compute_state_name";
|
||||
import { domainIcon } from "../common/entity/domain_icon";
|
||||
import { caseInsensitiveStringCompare } from "../common/string/compare";
|
||||
import { ScorableTextItem } from "../common/string/filter/sequence-matching";
|
||||
import { QuickBar } from "../dialogs/quick-bar/ha-quick-bar";
|
||||
import { PageNavigation } from "../layouts/hass-tabs-subpage";
|
||||
import { configSections } from "../panels/config/ha-panel-config";
|
||||
import { HomeAssistant } from "../types";
|
||||
@ -85,12 +84,11 @@ export const generateEntityItems = (
|
||||
.sort((a, b) => caseInsensitiveStringCompare(a.primaryText, b.primaryText));
|
||||
|
||||
export const generateCommandItems = (
|
||||
element: QuickBar,
|
||||
hass: HomeAssistant
|
||||
): Array<QuickBarItem[]> => [
|
||||
generateNavigationCommands(hass),
|
||||
generateReloadCommands(hass),
|
||||
generateServerControlCommands(element, hass),
|
||||
generateServerControlCommands(hass),
|
||||
];
|
||||
|
||||
export const generateReloadCommands = (hass: HomeAssistant): QuickBarItem[] => {
|
||||
@ -136,7 +134,6 @@ export const generateReloadCommands = (hass: HomeAssistant): QuickBarItem[] => {
|
||||
};
|
||||
|
||||
export const generateServerControlCommands = (
|
||||
element: QuickBar,
|
||||
hass: HomeAssistant
|
||||
): QuickBarItem[] => {
|
||||
const serverActions = ["restart", "stop"];
|
||||
|
@ -321,7 +321,7 @@ export class QuickBar extends SubscribeMixin(LitElement) {
|
||||
|
||||
this._items = this._items || [
|
||||
generateEntityItems(this.hass, entityLookup, deviceLookup, areaLookup),
|
||||
...generateCommandItems(this, this.hass),
|
||||
...generateCommandItems(this.hass),
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user