mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +02:00
![Julien Tant](/assets/img/avatar_default.png)
* 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>
32 lines
606 B
Python
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"
|