def get_water_heaters(self):
water_heaters = []<EOL>for location in self.locations:<EOL><INDENT>_location_id = location.get("<STR_LIT:id>")<EOL>for device in location.get("<STR_LIT>"):<EOL><INDENT>if device.get("<STR_LIT:type>") == "<STR_LIT>":<EOL><INDENT>water_heater_modes = self.api_interface.get_modes(device.get("<STR_LIT:id>"))<EOL>water_heater_usage = self.api_interface.get_usage(device.get("<STR_LIT:id>"))<EOL>water_heater = self.api_interface.get_device(device.get("<STR_LIT:id>"))<EOL>vacations = self.api_interface.get_vacations()<EOL>device_vacations = []<EOL>for vacation in vacations:<EOL><INDENT>for equipment in vacation.get("<STR_LIT>"):<EOL><INDENT>if equipment.get("<STR_LIT:id>") == water_heater.get("<STR_LIT:id>"):<EOL><INDENT>device_vacations.append(EcoNetVacation(vacation, self.api_interface))<EOL><DEDENT><DEDENT><DEDENT>water_heaters.append(EcoNetWaterHeater(water_heater, water_heater_modes, water_heater_usage,<EOL>_location_id,<EOL>device_vacations,<EOL>self.api_interface))<EOL><DEDENT><DEDENT><DEDENT>return water_heaters<EOL>
Return a list of water heater devices.

Parses the response from the locations endpoint in to a pyeconet.WaterHeater.