From 8a4e993183589c60f99ffac1cabef1ffffbba309 Mon Sep 17 00:00:00 2001 From: vrs01 Date: Thu, 8 Jun 2017 07:30:51 +0200 Subject: [PATCH] Update ping.py (#7944) --- homeassistant/components/device_tracker/ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/ping.py b/homeassistant/components/device_tracker/ping.py index 1f21a25359c..36f1ea06fd6 100644 --- a/homeassistant/components/device_tracker/ping.py +++ b/homeassistant/components/device_tracker/ping.py @@ -57,7 +57,7 @@ class Host(object): def update(self, see): """Update device state by sending one or more ping messages.""" failed = 0 - while failed < self._count: # check more times if host in unreachable + while failed < self._count: # check more times if host is unreachable if self.ping(): see(dev_id=self.dev_id, source_type=SOURCE_TYPE_ROUTER) return True