Repository navigation
feat(galevo): support heat pump menu items and filter invalid menu values - #195
Conversation
|
@to3k solve the conflits please |
astrinh0
left a comment
There was a problem hiding this comment.
Required — preserve valid readings at their limits. _is_menu_item_available rejects every non-enum value equal to its reported max, and every negative value equal to min. Those bounds can be legitimate readings; for example, pump modulation at its maximum would disappear. Limit this filter to documented sentinel values and test a valid boundary reading.
Required — handle the string mode value used by the new test. hp_mode_value calls int(value). The new test supplies "Standby" for HP_MODE, but tests only the generic getter; reading hp_mode_value would raise ValueError. Test that property with the string value and handle it, or establish that the API cannot return one.
|
Thanks for the thorough review @astrinh0! I have merged the latest main (0.19.15) and addressed both points in 8442caf:
|
|
Merged |
Summary
MenuItemNamesconstants (CH_BACKUP_RESISTANCE_1 = 337,HP_MODE = 340,HP_OUTSIDE_AIR_TEMP = 341,HP_WATER_FLOW_TEMP = 348,CH_FLOW_TEMP = 349) along withbase_values()andheat_pump_values().AristonAPI.get_menu_items/async_get_menu_itemsto accept an optionalmenu_itemsquery string (defaulting toMenuItemNames.base_values(), i.e.124,119), preventing HTTP 500 errors on non-HP gateways when querying heat pump IDs (related tofustom/ariston-remotethermo-home-assistant-v3#508).AristonGalevoDevice, queryMenuItemNames.heat_pump_values()in a separate batch only whenHP_SYSorHYBRID_SYSis enabled, retaining cached values on transient HTTP 500/550 errors.error: true,None) and disconnected-probe sentinel values (max/ negativemin, e.g.3276.0) in_get_menu_item_by_idand populatecustom_features[menu_item.name].ch_flow_temp_valueandch_flow_temp_unittoMenuItemNames.CH_FLOW_TEMP(349) whenDeviceProperties.CH_FLOW_TEMPis not present indataItems(as on GALEVO heat pump and hybrid systems).Testing
Nimbus,hpSys: true) and full unit test suite (86tests passing,99%total coverage,100%ongalevo_device.pyandconst.py).