def __init__(self, hass, name, host, mac_address):
        from wakeonlan import wol
        self._hass = hass
        self._name = name
        self._host = host
        self._mac_address = mac_address
        self._state = False
        self._wol = wol
        self.update()
Get the score for a given criterion from the XML data.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/wake_on_lan.py/WOLSwitch.__init__--crossover with--dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/__init__.py/StoredConfig.get_criterion_score