diff --git a/pyad2usb/ad2usb.py b/pyad2usb/ad2usb.py index 0d334d7..dd9987f 100644 --- a/pyad2usb/ad2usb.py +++ b/pyad2usb/ad2usb.py @@ -236,7 +236,7 @@ class AD2USB(object): self._fire_status = (False, 0) self._battery_status = (False, 0) self._panic_status = None - self._relay_status = dict() + self._relay_status = {} self.address = 18 self.configbits = 0xFF00 diff --git a/pyad2usb/messages.py b/pyad2usb/messages.py index c8c6dd7..a52b5fa 100644 --- a/pyad2usb/messages.py +++ b/pyad2usb/messages.py @@ -164,7 +164,7 @@ class RFMessage(object): self.value = None self.battery = None self.supervision = None - self.loop = dict() + self.loop = {} if data is not None: self._parse_message(data)