def __init__(self, hass, options, schema, primary_value):
    'Initialize the values object with the passed entity schema.'
    self._hass = hass
    self._entity_created = False
    self._schema = copy.deepcopy(schema)
    self._values = {}
    self.options = options
    for (name, disc_settings) in self._schema[const.DISC_VALUES].items():
        self._values[name] = None
        disc_settings[const.DISC_INSTANCE] = (primary_value.instance,)
    self._values[const.DISC_PRIMARY] = primary_value
    self._node = primary_value.node
    self._schema[const.DISC_NODE_ID] = [self._node.node_id]
Initialize the values object with the passed entity schema.
def __init__(self, hass, options, schema, primary_value):
    
    self._hass = hass
    self._entity_created = False
    self._schema = copy.deepcopy(schema)
    self._values = {}
    self.options = options
    for (name, disc_settings) in self._schema[const.DISC_VALUES].items():
        self._values[name] = None
        disc_settings[const.DISC_INSTANCE] = (primary_value.instance,)
    self._values[const.DISC_PRIMARY] = primary_value
    self._node = primary_value.node
    self._schema[const.DISC_NODE_ID] = [self._node.node_id]