Skip to content

Update state-card and more-info card to support new methods.#1532

Merged
balloob merged 3 commits intohome-assistant:masterfrom
cnrd:vacuum-start-pause-refactor
Aug 3, 2018
Merged

Update state-card and more-info card to support new methods.#1532
balloob merged 3 commits intohome-assistant:masterfrom
cnrd:vacuum-start-pause-refactor

Conversation

@cnrd
Copy link
Copy Markdown
Contributor

@cnrd cnrd commented Aug 1, 2018

Updated the vacuum state card and more-info card to support the new start and pause methods.

Backend changes: home-assistant/core#15751

Part of: home-assistant/architecture#29

<paper-icon-button icon="hass:play-pause" on-click="onPlayPause" title="Start/Pause"></paper-icon-button>
</div>
<template is="dom-if" if="[[supportsStart(stateObj)]]">
<div hidden$="[[!supportsStart(stateObj)]]">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have this hidden attribute if you're already inside a dom-if checking for the opposite?

@balloob balloob merged commit 255ea41 into home-assistant:master Aug 3, 2018
@ghost ghost removed the in progress label Aug 3, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants