async def async_setup_entry(hass, config_entry, async_add_entities):
    'Set up the inverter select entities from a config entry.'
    inverter = hass.data[DOMAIN][config_entry.entry_id][KEY_INVERTER]
    device_info = hass.data[DOMAIN][config_entry.entry_id][KEY_DEVICE_INFO]
    entities = []
    for description in NUMBERS:
        try:
            current_value = (await description.getter(inverter))
        except InverterError:
            _LOGGER.debug('Could not read inverter setting %s', description.key)
            continue
        entities.append(InverterNumberEntity(device_info, description, inverter, current_value))
    async_add_entities(entities)
Set up the inverter select entities from a config entry.
async def async_setup_entry(hass, config_entry, async_add_entities):
    
    inverter = hass.data[DOMAIN][config_entry.entry_id][KEY_INVERTER]
    device_info = hass.data[DOMAIN][config_entry.entry_id][KEY_DEVICE_INFO]
    entities = []
    for description in NUMBERS:
        try:
            current_value = (await description.getter(inverter))
        except InverterError:
            _LOGGER.debug('Could not read inverter setting %s', description.key)
            continue
        entities.append(InverterNumberEntity(device_info, description, inverter, current_value))
    async_add_entities(entities)