Skip to content

Commit a37f91c

Browse files
committed
chore: on_update is now called implicitly
if on_load is not defined
1 parent 25ef770 commit a37f91c

File tree

97 files changed

+4
-390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+4
-390
lines changed

drivers/ashrae/bacnet_datapoints.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ class Ashrae::BACnetDataPoints < PlaceOS::Driver
1414

1515
accessor bacnet : BACnet_1
1616

17-
def on_load
18-
on_update
19-
end
20-
2117
def on_update
2218
subscriptions.clear
2319
points = setting(Hash(String, String), :points)

drivers/aws/sns_sms.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ class AWS::SnsSms < PlaceOS::Driver
1818
aws_secret: "random",
1919
})
2020

21-
def on_load
22-
on_update
23-
end
24-
2521
getter! signer : Awscr::Signer::Signers::V4
2622

2723
def on_update

drivers/cisco/dna_spaces.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ class Cisco::DNASpaces < PlaceOS::Driver
4545
@last_received = 0_i64
4646
@stream_active = false
4747

48-
def on_load
49-
on_update
50-
end
51-
5248
def on_unload
5349
@channel.close
5450
@stream_active = false

drivers/cisco/ise/guest_users.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ class Cisco::Ise::Guests < PlaceOS::Driver
3434
TYPE_HEADER = "application/vnd.com.cisco.ise.identity.guestuser.2.0+xml"
3535
TIME_FORMAT = "%m/%d/%Y %H:%M"
3636

37-
def on_load
38-
on_update
39-
end
40-
4137
def on_update
4238
@basic_auth = "Basic #{Base64.strict_encode("#{setting?(String, :username)}:#{setting?(String, :password)}")}"
4339
@portal_id = setting?(String, :portal_id) || "portal101"

drivers/cisco/ise/network_access.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ class Cisco::Ise::NetworkAccess < PlaceOS::Driver
4646
TYPE_HEADER = "application/json"
4747
TIME_FORMAT = "%m/%d/%Y %H:%M"
4848

49-
def on_load
50-
on_update
51-
end
52-
5349
def on_update
5450
username = setting?(String, :username)
5551
password = setting?(String, :password)

drivers/cisco/meraki/captive_portal.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ class Cisco::Meraki::CaptivePortal < PlaceOS::Driver
2121
success_url: "https://company.com/welcome",
2222
})
2323

24-
def on_load
25-
on_update
26-
end
27-
2824
@wifi_secret : String = ""
2925
@date_format : String = "%Y%m%d"
3026
@success_url : String = "https://place.technology/"

drivers/cisco/spaces_room.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ class Cisco::SpacesRoom < PlaceOS::Driver
1919
getter module_name : String = ""
2020
getter room_id : String = ""
2121

22-
def on_load
23-
on_update
24-
end
25-
2622
def on_update
2723
@system_id = setting?(String, :cisco_spaces_system).presence || config.control_system.not_nil!.id
2824
@module_name = setting?(String, :cisco_spaces_module).presence || "Cisco_Spaces"

drivers/cisco/webex/instant_connect.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ class Cisco::Webex::InstantConnect < PlaceOS::Driver
2020
@webex_guest_issuer : String = ""
2121
@webex_guest_secret : String = ""
2222

23-
def on_load
24-
on_update
25-
end
26-
2723
def on_update
2824
@webex_guest_issuer = setting?(String, :webex_guest_issuer) || ""
2925
@webex_guest_secret = setting?(String, :webex_guest_secret) || ""

drivers/crestron/fusion.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ class Crestron::Fusion < PlaceOS::Driver
3737
@api_pass_code : String = ""
3838
@content_type : String = ""
3939

40-
def on_load
41-
on_update
42-
end
43-
4440
def on_update
4541
@security_level = setting(Int32, :security_level)
4642
@user_id = setting(String, :user_id)

drivers/crestron/nvx_address_manager.cr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class Crestron::NvxAddressManager < PlaceOS::Driver
2727
@base_address : UInt32 = 0_u32
2828
@block_size : Int32 = 8
2929

30-
def on_load
31-
on_update
32-
end
33-
3430
def on_update
3531
addr = setting(String, :base_address)
3632
base_addr = ::IPAddress::IPv4.new addr

0 commit comments

Comments
 (0)