mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-27 13:03:45 +01:00
Update ping.py (#7944)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user