Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Mar 11, 2020
1 parent 4d1aa9d commit 5bb60e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
23 changes: 3 additions & 20 deletions src/panels/config/devices/device-detail/ha-device-card-mqtt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,17 @@ import {
} from "lit-element";
import { showConfirmationDialog } from "../../../../dialogs/generic/show-dialog-box";
import { HomeAssistant } from "../../../../types";
import { AreaRegistryEntry } from "../../../../data/area_registry";

@customElement("ha-device-card-mqtt")
export class HaDeviceCardMqtt extends LitElement {
@property() public hass!: HomeAssistant;
@property() public device!: DeviceRegistryEntry;
@property() public devices!: DeviceRegistryEntry[];
@property() public areas!: AreaRegistryEntry[];
@property() public narrow!: boolean;
@property() public domains!: string[];

protected render(): TemplateResult {
return html`
<div class="info">
<div class="buttons">
<mwc-button class="warning" @click="${this._confirmDeleteEntry}">
${this.hass.localize("ui.panel.config.devices.delete")}
</mwc-button>
</div>
</div>
<mwc-button class="warning" @click="${this._confirmDeleteEntry}">
${this.hass.localize("ui.panel.config.devices.delete")}
</mwc-button>
`;
}

Expand All @@ -51,14 +42,6 @@ export class HaDeviceCardMqtt extends LitElement {

static get styles(): CSSResult {
return css`
ha-card {
flex: 1 0 100%;
padding-bottom: 10px;
min-width: 0;
}
.device {
width: 30%;
}
mwc-button.warning {
margin-right: auto;
--mdc-theme-primary: var(--google-red-500);
Expand Down
2 changes: 0 additions & 2 deletions src/panels/config/devices/ha-config-device-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ export class HaConfigDevicePage extends LitElement {
? html`
<ha-device-card-mqtt
.hass=${this.hass}
.areas=${this.areas}
.devices=${this.devices}
.device=${device}
></ha-device-card-mqtt>
`
Expand Down

0 comments on commit 5bb60e8

Please sign in to comment.