Skip to content

add icons for Gas, Power, Problem and Safety#6824

Closed
Mariusthvdb wants to merge 3 commits intohome-assistant:devfrom
Mariusthvdb:patch-1
Closed

add icons for Gas, Power, Problem and Safety#6824
Mariusthvdb wants to merge 3 commits intohome-assistant:devfrom
Mariusthvdb:patch-1

Conversation

@Mariusthvdb
Copy link
Contributor

@Mariusthvdb Mariusthvdb commented Sep 7, 2020

to allow for more fine-grained icon representation in the frontend.

Breaking change

Proposed change

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

to allow for more fine-grained icon representation in the frontend.
@kukulich
Copy link
Contributor

kukulich commented Sep 8, 2020

You also changed icons for “gas”.

and corrected on/off icons (had them reversed)
@Mariusthvdb
Copy link
Contributor Author

You also changed icons for “gas”.

didn't realize that, doing so by leaving them open... Now added alert biohazard for Gas, and reversed the on/off icons, which I had mixed up.

@Mariusthvdb Mariusthvdb changed the title add icons for Power, Problem and Safety add icons for Gas, Power, Problem and Safety Sep 8, 2020
```
     return activated ? "hass:shield-check" : "hass:alert";
```
Comment on lines 18 to 27
case "gas":
return activated ? "hass:shield-check" : "hass:alert";
case "power":
return activated ? "hass:power-off" : "hass:power";
case "problem":
return activated ? "hass:check-circle" : "hass:alert-circle";
case "safety":
return activated ? "hass:check-circle" : "hass:alert-circle";
case "smoke":
return activated ? "hass:shield-check" : "hass:alert";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
case "gas":
return activated ? "hass:shield-check" : "hass:alert";
case "power":
return activated ? "hass:power-off" : "hass:power";
case "problem":
return activated ? "hass:check-circle" : "hass:alert-circle";
case "safety":
return activated ? "hass:check-circle" : "hass:alert-circle";
case "smoke":
return activated ? "hass:shield-check" : "hass:alert";
case "power":
return activated ? "hass:power-off" : "hass:power";
case "problem":
return activated ? "hass:check-circle" : "hass:alert-circle";
case "safety":
case "gas":
case "smoke":
return activated ? "hass:shield-check" : "hass:shield-alert";

Maybe fire-alert, but fire <> smoke?

@bramkragten
Copy link
Member

Please rebase this.

@bramkragten
Copy link
Member

Any update on this?

@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2022
@Mariusthvdb Mariusthvdb deleted the patch-1 branch September 24, 2024 15:18
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.

4 participants