Skip to content

Commit

Permalink
Remove duplicate in system addition logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Nov 5, 2024
1 parent 47266b5 commit b9a1b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions measures/ApplyUpgrade/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,6 @@ def get_panel_system_additions(_hpxml_bldg, panel_system_additions, args_hash)
panel_system_additions['electric_panel_load_kitchen_fans_addition'] = true
elsif arg_name.start_with?('bathroom_fans_quantity') && value > 0
panel_system_additions['electric_panel_load_bathroom_fans_addition'] = true
elsif arg_name.start_with?('whole_house_fan_present') && value
panel_system_additions['electric_panel_load_whole_house_fan_addition'] = true
elsif arg_name.start_with?('water_heater_type') && value != Constants::None
panel_system_additions['electric_panel_load_water_heater_addition'] = true
elsif arg_name.start_with?('clothes_dryer_present') && value
Expand Down
6 changes: 3 additions & 3 deletions measures/ApplyUpgrade/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>apply_upgrade</name>
<uid>33f1654c-f734-43d1-b35d-9d2856e41b5a</uid>
<version_id>e5ef1c2f-3658-4ffe-a645-8a4497d02342</version_id>
<version_modified>2024-11-05T22:56:34Z</version_modified>
<version_id>4234e682-ecfb-4215-b261-da4c804a47ec</version_id>
<version_modified>2024-11-05T23:01:32Z</version_modified>
<xml_checksum>9339BE01</xml_checksum>
<class_name>ApplyUpgrade</class_name>
<display_name>Apply Upgrade</display_name>
Expand Down Expand Up @@ -6342,7 +6342,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>4CE7FDDB</checksum>
<checksum>2DA2B10C</checksum>
</file>
<file>
<filename>constants.rb</filename>
Expand Down

0 comments on commit b9a1b91

Please sign in to comment.