From 89c04c94e069a97a2a4f1f6d05765febef4428d5 Mon Sep 17 00:00:00 2001 From: Phil Bruckner Date: Sun, 12 Jan 2020 14:21:07 -0600 Subject: [PATCH] Revert "Forget auth token when going offline so we can reconnect (#26630)" (#30705) This reverts commit 2d6d6ba90e5e2f179a07c4ecd7de1744e86a8025. --- homeassistant/components/amcrest/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/homeassistant/components/amcrest/__init__.py b/homeassistant/components/amcrest/__init__.py index b934a7e0549..63daeb04731 100644 --- a/homeassistant/components/amcrest/__init__.py +++ b/homeassistant/components/amcrest/__init__.py @@ -132,8 +132,6 @@ class AmcrestChecker(Http): offline = not self.available if offline and was_online: _LOGGER.error("%s camera offline: Too many errors", self._wrap_name) - with self._token_lock: - self._token = None dispatcher_send( self._hass, service_signal(SERVICE_UPDATE, self._wrap_name) )