'Test component properties.'

def test_properties(self):

    device1 = _get_vacuum_device_cleaning()
    device2 = _get_vacuum_device_unknown_state()
    device3 = _get_vacuum_device_charging()
    component = Dyson360EyeDevice(device1)
    component2 = Dyson360EyeDevice(device2)
    component3 = Dyson360EyeDevice(device3)
    self.assertEqual(component.name, 'Device_Vacuum')
    self.assertTrue(component.is_on)
    self.assertEqual(component.icon, 'mdi:roomba')
    self.assertEqual(component.status, 'Cleaning')
    self.assertEqual(component2.status, 'Unknown')
    self.assertEqual(component.battery_level, 85)
    self.assertEqual(component.fan_speed, 'Quiet')
    self.assertEqual(component.fan_speed_list, ['Quiet', 'Max'])
    self.assertEqual(component.device_state_attributes['position'], '(0,    0)')
    self.assertTrue(component.available)
    self.assertEqual(component.supported_features, 255)
    self.assertEqual(component.battery_icon, 'mdi:battery-80')
    self.assertEqual(component3.battery_icon, 'mdi:battery-charging-40')
