hass-core/homeassistant/components/moon
Marius 5203c72fca Add state dependent icons to moon sensor (#28743)
* have sensor.moon use state dependent icons

Material design icons have icons for all sensor.states, let's use these natively in the component.
Based on the Season icons, tried to change accordingly.

* Update sensor.py

added state constants

* Update sensor.py

fixed missing mdi:

* order of constants. moon icons and use self.state

change order of constants to alphabetical, changed order in Moon_icons to alphabetical, used self.state for icon lookup

* replace the strings

 replace the strings for self.state with the constants

* removed quotes

* removed spaces, empty line

* local Black

* Sort imports and move import to file header


Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
2019-11-19 19:10:15 +01:00
..
.translations [ci skip] Translation update 2019-09-25 00:32:16 +00:00
__init__.py Consolidate all platforms that have tests (#22109) 2019-03-18 23:07:39 -07:00
manifest.json Update documentation link URL for integrations in all manifests (#27114) 2019-10-02 09:25:44 -07:00
sensor.py Add state dependent icons to moon sensor (#28743) 2019-11-19 19:10:15 +01:00
strings.sensor.json Move platforms patch (#22168) 2019-03-19 06:43:15 -07:00