Skip to content

Commit

Permalink
Unifying entity creation (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 2, 2023
1 parent 6c8124f commit 605ed24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Queue/Consumers/StoreDeviceConnectionState.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public function consume(Entities\Messages\Entity $entity): bool

if (
$entity->getState()->equalsValue(Metadata\Types\ConnectionState::STATE_DISCONNECTED)
|| $entity->getState()->equalsValue(Metadata\Types\ConnectionState::STATE_LOST)
|| $entity->getState()->equalsValue(Metadata\Types\ConnectionState::STATE_ALERT)
|| $entity->getState()->equalsValue(Metadata\Types\ConnectionState::STATE_UNKNOWN)
) {
Expand Down
2 changes: 0 additions & 2 deletions src/Subscribers/Properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ private function configureDeviceState(Entities\VieraDevice $device): void
'format' => [
MetadataTypes\ConnectionState::STATE_CONNECTED,
MetadataTypes\ConnectionState::STATE_DISCONNECTED,
MetadataTypes\ConnectionState::STATE_LOST,
MetadataTypes\ConnectionState::STATE_ALERT,
MetadataTypes\ConnectionState::STATE_UNKNOWN,
],
Expand All @@ -155,7 +154,6 @@ private function configureDeviceState(Entities\VieraDevice $device): void
'format' => [
MetadataTypes\ConnectionState::STATE_CONNECTED,
MetadataTypes\ConnectionState::STATE_DISCONNECTED,
MetadataTypes\ConnectionState::STATE_LOST,
MetadataTypes\ConnectionState::STATE_ALERT,
MetadataTypes\ConnectionState::STATE_UNKNOWN,
],
Expand Down

0 comments on commit 605ed24

Please sign in to comment.