'Initialize the Host pinger.'

def __init__(self, ip_address, dev_id, hass, config):

    self.hass = hass
    self.ip_address = ip_address
    self.dev_id = dev_id
    self._count = config[CONF_PING_COUNT]
    if (sys.platform == 'win32'):
        self._ping_cmd = ['ping', '-n    1', '-w', '1000', self.ip_address]
    else:
        self._ping_cmd = ['ping', '-n', '-q', '-c1', '-W1', self.ip_address]
