1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00
ha-core/homeassistant/components/zodiac/const.py
Julien Tant 8b9c757fdc
Add zodiac integration (#38935)
* add zodiac sign integration

* add tests & refacto

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

* fix indentation from suggested correction, fix quality scale and remove useless functions

* fix code formatting

* Create const.py

* Update sensor.py

* Update const.py

* Update test_sensor.py

* Update test_sensor.py

* Update test_sensor.py

* Update test_sensor.py

* Update test_sensor.py

* Update sensor.py

* Update test_sensor.py

* Update __init__.py

* Update sensor.py

* Update test_sensor.py

* Update sensor.py

* Update __init__.py

* Update test_sensor.py

* Update __init__.py

* Fix zodiac time patch

* Delete sensor.fr.json

* Update sensor.py

* Delete sensor.en.json

* Update test_sensor.py

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-09-21 10:41:30 -05:00

32 lines
606 B
Python

"""Constants for Zodiac."""
DOMAIN = "zodiac"
# Signs
SIGN_ARIES = "aries"
SIGN_TAURUS = "taurus"
SIGN_GEMINI = "gemini"
SIGN_CANCER = "cancer"
SIGN_LEO = "leo"
SIGN_VIRGO = "virgo"
SIGN_LIBRA = "libra"
SIGN_SCORPIO = "scorpio"
SIGN_SAGITTARIUS = "sagittarius"
SIGN_CAPRICORN = "capricorn"
SIGN_AQUARIUS = "aquarius"
SIGN_PISCES = "pisces"
# Elements
ELEMENT_FIRE = "fire"
ELEMENT_AIR = "air"
ELEMENT_EARTH = "earth"
ELEMENT_WATER = "water"
# Modality
MODALITY_CARDINAL = "cardinal"
MODALITY_FIXED = "fixed"
MODALITY_MUTABLE = "mutable"
# Attributes
ATTR_ELEMENT = "element"
ATTR_MODALITY = "modality"