Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.dominos Namespace Reference

Classes

class  Dominos
 
class  DominosOrder
 
class  DominosProductListView
 

Functions

bool setup (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 _ORDERS_SCHEMA
 
string ATTR_ADDRESS = "address"
 
string ATTR_COUNTRY = "country_code"
 
string ATTR_EMAIL = "email"
 
string ATTR_FIRST_NAME = "first_name"
 
string ATTR_LAST_NAME = "last_name"
 
string ATTR_ORDER_CODES = "codes"
 
string ATTR_ORDER_ENTITY = "order_entity_id"
 
string ATTR_ORDER_NAME = "name"
 
string ATTR_ORDERS = "orders"
 
string ATTR_PHONE = "phone"
 
string ATTR_SHOW_MENU = "show_menu"
 
 CONFIG_SCHEMA
 
string DOMAIN = "dominos"
 
string ENTITY_ID_FORMAT = DOMAIN + ".{}"
 
 MIN_TIME_BETWEEN_STORE_UPDATES = timedelta(minutes=3330)
 
 MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10)
 

Detailed Description

Support for Dominos Pizza ordering.

Function Documentation

◆ setup()

bool homeassistant.components.dominos.setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up is called when Home Assistant is loading our component.

Definition at line 67 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.dominos._LOGGER = logging.getLogger(__name__)
private

Definition at line 18 of file __init__.py.

◆ _ORDERS_SCHEMA

homeassistant.components.dominos._ORDERS_SCHEMA
private
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(ATTR_ORDER_NAME): cv.string,
4  vol.Required(ATTR_ORDER_CODES): vol.All(cv.ensure_list, [cv.string]),
5  }
6 )

Definition at line 39 of file __init__.py.

◆ ATTR_ADDRESS

string homeassistant.components.dominos.ATTR_ADDRESS = "address"

Definition at line 29 of file __init__.py.

◆ ATTR_COUNTRY

string homeassistant.components.dominos.ATTR_COUNTRY = "country_code"

Definition at line 24 of file __init__.py.

◆ ATTR_EMAIL

string homeassistant.components.dominos.ATTR_EMAIL = "email"

Definition at line 27 of file __init__.py.

◆ ATTR_FIRST_NAME

string homeassistant.components.dominos.ATTR_FIRST_NAME = "first_name"

Definition at line 25 of file __init__.py.

◆ ATTR_LAST_NAME

string homeassistant.components.dominos.ATTR_LAST_NAME = "last_name"

Definition at line 26 of file __init__.py.

◆ ATTR_ORDER_CODES

string homeassistant.components.dominos.ATTR_ORDER_CODES = "codes"

Definition at line 34 of file __init__.py.

◆ ATTR_ORDER_ENTITY

string homeassistant.components.dominos.ATTR_ORDER_ENTITY = "order_entity_id"

Definition at line 32 of file __init__.py.

◆ ATTR_ORDER_NAME

string homeassistant.components.dominos.ATTR_ORDER_NAME = "name"

Definition at line 33 of file __init__.py.

◆ ATTR_ORDERS

string homeassistant.components.dominos.ATTR_ORDERS = "orders"

Definition at line 30 of file __init__.py.

◆ ATTR_PHONE

string homeassistant.components.dominos.ATTR_PHONE = "phone"

Definition at line 28 of file __init__.py.

◆ ATTR_SHOW_MENU

string homeassistant.components.dominos.ATTR_SHOW_MENU = "show_menu"

Definition at line 31 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.dominos.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  {
5  vol.Required(ATTR_COUNTRY): cv.string,
6  vol.Required(ATTR_FIRST_NAME): cv.string,
7  vol.Required(ATTR_LAST_NAME): cv.string,
8  vol.Required(ATTR_EMAIL): cv.string,
9  vol.Required(ATTR_PHONE): cv.string,
10  vol.Required(ATTR_ADDRESS): cv.string,
11  vol.Optional(ATTR_SHOW_MENU): cv.boolean,
12  vol.Optional(ATTR_ORDERS, default=[]): vol.All(
13  cv.ensure_list, [_ORDERS_SCHEMA]
14  ),
15  }
16  )
17  },
18  extra=vol.ALLOW_EXTRA,
19 )

Definition at line 46 of file __init__.py.

◆ DOMAIN

string homeassistant.components.dominos.DOMAIN = "dominos"

Definition at line 21 of file __init__.py.

◆ ENTITY_ID_FORMAT

string homeassistant.components.dominos.ENTITY_ID_FORMAT = DOMAIN + ".{}"

Definition at line 22 of file __init__.py.

◆ MIN_TIME_BETWEEN_STORE_UPDATES

homeassistant.components.dominos.MIN_TIME_BETWEEN_STORE_UPDATES = timedelta(minutes=3330)

Definition at line 37 of file __init__.py.

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.dominos.MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10)

Definition at line 36 of file __init__.py.