Skip to content

Commit

Permalink
QA fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Feb 3, 2022
1 parent 095fa63 commit cd8a6cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions fastybird_fb_bus_connector/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@
"""

# Python base dependencies
from typing import Dict, Union, List, Optional
from typing import Dict, List, Optional, Union

# Library dependencies
from fastybird_devices_module.entities.connector import ConnectorEntity
from fastybird_devices_module.entities.device import DeviceEntity

# Library libs
from fastybird_fb_bus_connector.types import CONNECTOR_NAME, DEVICE_NAME, MASTER_ADDRESS, ProtocolVersion
from fastybird_fb_bus_connector.types import (
CONNECTOR_NAME,
DEVICE_NAME,
MASTER_ADDRESS,
ProtocolVersion,
)


class FbBusConnectorEntity(ConnectorEntity): # pylint: disable=too-few-public-methods
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/FbBusConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getInterface(): string
{
$interface = $this->getParam('serial_interface', '/dev/ttyAMA0');

return $interface === null ? '/dev/ttyAMA0' : $interface;
return $interface ?? '/dev/ttyAMA0';
}

/**
Expand Down

0 comments on commit cd8a6cf

Please sign in to comment.