Skip to content

Commit

Permalink
Add support for None
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Feb 1, 2022
1 parent 28b585a commit f57f899
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fastybird_fb_bus_connector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from .bootstrap import create_connector

__version__ = "0.9.0"
__version__ = "0.10.0"

__all__ = ["connector", "bootstrap"]

Expand Down
2 changes: 1 addition & 1 deletion fastybird_fb_bus_connector/pairing/apiv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ApiV1Pairing(IPairing): # pylint: disable=too-many-instance-attributes
@author Adam Kadlec <adam.kadlec@fastybird.com>
"""

__enabled: bool = True
__enabled: bool = False

__discovered_devices: Set[DiscoveredDeviceRecord] = set()

Expand Down
9 changes: 4 additions & 5 deletions fastybird_fb_bus_connector/receivers/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,10 @@ def __write_value_to_register(
register_record: RegisterRecord,
value: Union[str, int, float, bool, datetime, ButtonPayload, SwitchPayload, None],
) -> None:
if value is not None:
self.__registers_registry.set_actual_value(
register=register_record,
value=value,
)
self.__registers_registry.set_actual_value(
register=register_record,
value=value,
)


@inject(alias=IReceiver)
Expand Down

0 comments on commit f57f899

Please sign in to comment.