@classmethod
def from_config(cls, xknx, name, config):
    """Initialize object from configuration structure."""
    group_address_state = config.get('group_address_state')
    sync_state = config.get('sync_state', True)
    value_type = config.get('value_type')
    return cls(xknx, name, group_address_state=group_address_state,
        sync_state=sync_state, value_type=value_type)
