Skip to content

Add icon to Darksky summary sensors#18275

Merged
fabaff merged 1 commit intohome-assistant:devfrom
leppa:darksky-summary-icons
Nov 7, 2018
Merged

Add icon to Darksky summary sensors#18275
fabaff merged 1 commit intohome-assistant:devfrom
leppa:darksky-summary-icons

Conversation

@leppa
Copy link
Copy Markdown
Contributor

@leppa leppa commented Nov 6, 2018

Description:

Some cards in HA show entity's icon instead of entity picture (e.g. type: sensor in Lovelace UI). This change sets icon for summary sensors using the same logic as used for their entity picture.

image

Checklist:

  • The code change is tested and works locally.
  • There is no commented out code in this PR.

@leppa leppa requested a review from fabaff as a code owner November 6, 2018 19:20
@ghost ghost added the in progress label Nov 6, 2018
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
Comment thread homeassistant/components/sensor/darksky.py Outdated
The icon changes dynamically, based on summary.
@fabaff fabaff changed the title Darksky: Add icon to summary sensors Add icon to Darksky summary sensors Nov 6, 2018
Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

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

Looks good to me 🐦

@fabaff fabaff merged commit 5cee994 into home-assistant:dev Nov 7, 2018
@ghost ghost removed the in progress label Nov 7, 2018
@leppa leppa deleted the darksky-summary-icons branch November 7, 2018 09:06
@balloob balloob mentioned this pull request Nov 29, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants