Skip to content

Commit

Permalink
vacuum: Catch DeviceInfoUnavailableException for model detection (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti authored Jul 3, 2020
1 parent 28d8d8a commit 6078c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from .click_common import DeviceGroup, GlobalContextObject, LiteralParamType, command
from .device import Device
from .exceptions import DeviceException
from .exceptions import DeviceException, DeviceInfoUnavailableException
from .vacuumcontainers import (
CarpetModeStatus,
CleaningDetails,
Expand Down Expand Up @@ -454,7 +454,7 @@ def _autodetect_model(self):
try:
info = self.info()
self.model = info.model
except TypeError:
except (TypeError, DeviceInfoUnavailableException):
# cloud-blocked vacuums will not return proper payloads
self._fanspeeds = FanspeedV1
self.model = ROCKROBO_V1
Expand Down

0 comments on commit 6078c15

Please sign in to comment.