From 10d7adad90a9934a9adcbfdf589af5e156ecf50c Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Tue, 1 Feb 2022 11:43:31 +0100 Subject: [PATCH] Fixing types --- fastybird_fb_bus_connector/registry/model.py | 2 +- fastybird_fb_bus_connector/registry/records.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fastybird_fb_bus_connector/registry/model.py b/fastybird_fb_bus_connector/registry/model.py index 38b1679..41d8100 100644 --- a/fastybird_fb_bus_connector/registry/model.py +++ b/fastybird_fb_bus_connector/registry/model.py @@ -800,7 +800,7 @@ def reset(self, device_id: Optional[uuid.UUID] = None, registers_type: Optional[ def set_actual_value( self, register: RegisterRecord, - value: Union[str, int, float, bool, datetime, ButtonPayload, SwitchPayload], + value: Union[str, int, float, bool, datetime, ButtonPayload, SwitchPayload, None], ) -> RegisterRecord: """Set actual value to register""" existing_record = self.get_by_id(register_id=register.id) diff --git a/fastybird_fb_bus_connector/registry/records.py b/fastybird_fb_bus_connector/registry/records.py index e207ec8..a4211f5 100644 --- a/fastybird_fb_bus_connector/registry/records.py +++ b/fastybird_fb_bus_connector/registry/records.py @@ -433,7 +433,7 @@ def actual_value(self) -> Union[str, int, float, bool, datetime, ButtonPayload, # ----------------------------------------------------------------------------- @actual_value.setter - def actual_value(self, value: Union[str, int, float, bool, datetime, ButtonPayload, SwitchPayload]) -> None: + def actual_value(self, value: Union[str, int, float, bool, datetime, ButtonPayload, SwitchPayload, None]) -> None: """Set register actual value""" self._actual_value = value