esphome/esphomeyaml/core.py

26 lines
512 B
Python
Raw Normal View History

2018-04-07 01:23:03 +02:00
class ESPHomeYAMLError(Exception):
"""General esphomeyaml exception occurred."""
pass
class HexInt(long):
def __str__(self):
return "0x{:X}".format(self)
class IPAddress(object):
def __init__(self, *args):
if len(args) != 4:
raise ValueError(u"IPAddress must consist up 4 items")
self.args = args
def __str__(self):
return '.'.join(str(x) for x in self.args)
CONFIG_PATH = None
SIMPLIFY = True
ESP_PLATFORM = ''
BOARD = ''
2018-05-06 15:56:12 +02:00
RAW_CONFIG = None