Setting tag plcapi-5.4-2
[plcapi.git] / PLC / Methods / AddAddressType.py
index 4cd53ff..2847714 100644 (file)
@@ -1,4 +1,3 @@
-# $Id#
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -25,13 +24,13 @@ class AddAddressType(Method):
         ]
 
     returns = Parameter(int, 'New address_type_id (> 0) if successful')
-        
+
 
     def call(self, auth, address_type_fields):
         address_type_fields = dict(filter(can_update, address_type_fields.items()))
         address_type = AddressType(self.api, address_type_fields)
         address_type.sync()
 
-       self.event_objects = {'AddressType' : [address_type['address_type_id']]}
-        
-       return address_type['address_type_id']
+        self.event_objects = {'AddressType' : [address_type['address_type_id']]}
+
+        return address_type['address_type_id']