-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.py
41 lines (30 loc) · 1.2 KB
/
const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Constants for the Chicken Farm integration."""
from homeassistant.const import Platform
# Domain and platforms
DOMAIN = "chicken"
PLATFORMS = [Platform.SENSOR, Platform.NUMBER] # Keep both. You'll have sensors AND numbers.
# Configuration keys
CONF_FARM_NAME = "farm_name"
CONF_FARM_SIZE = "farm_size"
CONF_CHICKEN_TYPE = "chicken_type"
# Default values
DEFAULT_FARM_NAME = "My Chicken Farm"
DEFAULT_FARM_SIZE = "Small"
DEFAULT_CHICKEN_TYPE = "Rhode Island Red"
# Units
UNIT_KG = "kg"
UNIT_EURO = "€"
# Entity IDs
# ENTITY_EGGS_IN_STORAGE = "sensor.eggs_in_storage" # Remove this. Not the right way to do it.
# ENTITY_TOTAL_COSTS = "sensor.total_costs" # Remove this, this entity should be a sensor
# Error Messages
ERROR_INVALID_FARM_SIZE = "Invalid farm size. Choose from Small, Medium, or Large."
ERROR_INVALID_CHICKEN_TYPE = "Invalid chicken type. Choose from Rhode Island Red, Plymouth Rock, or Sussex."
# Purchase Types
PURCHASE_TYPES = ["Pellets", "Scratch Grains", "Bedding", "Misc"]
# Egg Types
EGG_TYPES = ["white", "beige", "mint", "olive", "brown", "chocolate"]
# Chicken Types
CHICKEN_TYPES = ["Rhode Island Red", "Plymouth Rock", "Sussex"]
# Farm Sizes
FARM_SIZES = ["Small", "Medium", "Large"]