Skip to content

Commit

Permalink
QA fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 21, 2022
1 parent d097f65 commit a69edfc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fastybird_devices_module/connectors/connector.py
Expand Up @@ -648,10 +648,7 @@ def __handle_entity_event( # pylint: disable=too-many-branches,too-many-return-
except ValueError:
return

if item.routing_key in (
RoutingKey.DEVICE_PROPERTY_ENTITY_CREATED,
RoutingKey.DEVICE_PROPERTY_ENTITY_UPDATED
):
if item.routing_key in (RoutingKey.DEVICE_PROPERTY_ENTITY_CREATED, RoutingKey.DEVICE_PROPERTY_ENTITY_UPDATED):
close_all_sessions()

try:
Expand Down Expand Up @@ -788,8 +785,7 @@ def __handle_entity_event( # pylint: disable=too-many-branches,too-many-return-
return

self.__connector.initialize_device_channel_property(
channel=channel_entity,
channel_property=channel_property_entity
channel=channel_entity, channel_property=channel_property_entity
)

if item.routing_key == RoutingKey.CHANNEL_PROPERTY_ENTITY_DELETED:
Expand Down

0 comments on commit a69edfc

Please sign in to comment.