Example #1
0
 async def async_update_group_list_with_names(self):
     xml = ControllerDictBuilder().get_mnet_list().to_xml()
     xml_response = await self.async_send_command(xml)
     parsed = parse_xml(xml_response)
     groups_info = get_group_info_list_from_dict(parsed)
     for group in self.groups:
         group.web_name = groups_info[group.group_id]["web_name"]
         group.lcd_name = groups_info[group.group_id]["lcd_name"]
Example #2
0
 async def async_update_single_group_bulk(self, group):
     xml = ControllerDictBuilder().get_single_bulk_data(
         group.group_id).to_xml()
     xml_response = await self.async_send_command(xml)
     parsed = parse_xml(xml_response)
     group.bulk_string = get_single_bulk_from_dict(parsed)
     group.rac_sw = get_single_racsw_from_dict(parsed)
     group.energy_control = get_single_energycontrol_from_dict(parsed)
     return group
Example #3
0
 async def update_lcd_name_for_group(self, group):
     xml = ControllerDictBuilder().get_mnet(group.group_id,
                                            lcd_name=True).to_xml()
     xml_response = await self.async_send_command(xml)
     parsed = parse_xml(xml_response)
     group.lcd_name = get_lcd_name_from_dict(parsed)
Example #4
0
 async def async_initialize_group_list(self):
     xml = ControllerDictBuilder().get_mnet_group_list().to_xml()
     xml_response = await self.async_send_command(xml)
     parsed = parse_xml(xml_response)
     self.groups = get_group_list_from_dict(parsed)
     await self.async_update_group_list_with_names()
Example #5
0
 async def async_initialize_system_data(self):
     xml = ControllerDictBuilder().get_system_data().to_xml()
     xml_response = await self.async_send_command(xml)
     parsed = parse_xml(xml_response)
     self.system_data = get_system_data_from_dict(parsed)