Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyintesishome/intesisbase.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Base class for Intesis controllers."""
import asyncio
import logging
Expand Down Expand Up @@ -105,13 +105,13 @@
_LOGGER.debug("Received: %s", data)

await self._parse_response(data)

Check warning on line 108 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace

Check warning on line 108 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace
if not self._received_response.is_set():
_LOGGER.debug("Resolving set_value's await")
self._received_response.set()

Check warning on line 112 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace

Check warning on line 112 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace

except IncompleteReadError:

Check failure on line 114 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

too many blank lines (2)

Check failure on line 114 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

too many blank lines (2)
_LOGGER.debug(
"pyIntesisHome lost connection to the %s server", self._device_type
)
Expand Down Expand Up @@ -311,11 +311,11 @@

# Generate the mode list from the map
for mode_bit in mode_bits:
if mode_map & mode_bit:
if mode_map is not None and mode_map & mode_bit:
mode_list.append(mode_bits.get(mode_bit))

return mode_list

Check warning on line 318 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace

Check warning on line 318 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace
def get_vertical_swing_list(self, device_id) -> list:
"""Public method to return the list of vertical swing modes."""
config_vertical_vanes = self.get_device_property(device_id, "config_vertical_vanes")
Expand Down Expand Up @@ -469,7 +469,7 @@
"""Public method returns the current horizontal vane setting."""
swing = self.get_device_property(device_id, "hvane")
return swing

Check warning on line 472 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace

Check warning on line 472 in pyintesishome/intesisbase.py

View workflow job for this annotation

GitHub Actions / Check flake8

blank line contains whitespace
def get_model(self, device_id) -> str:
"""Public method returns the device model."""
return self._devices[str(device_id)].get("model")
Expand Down
Loading