def encodeX10UnitCode(unit_code, anX10Controller):
    """
    Given an X10 Unit Code (e.g. "6"), return the value for this
    specific controller
    """
    return anX10Controller.UNIT_ENCMAP[str(unit_code)]
