Skip to content

Commit

Permalink
Extract the component of the UUID that corresponds to the MAC address…
Browse files Browse the repository at this point in the history
… when returning SSDP results.
  • Loading branch information
MrJoy committed Jul 7, 2015
1 parent 1d7c6bb commit 5e159ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hue/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def bridges
.uniq { |d| d[:location] }
.map do |bridge|
Bridge.new(self, {
'id' => bridge[:usn],
'id' => bridge[:usn].split(/:/, 3)[1].split(/-/).last,
'name' => bridge[:st],
'ipaddress' => URI.parse(bridge[:location]).host
})
Expand Down

0 comments on commit 5e159ed

Please sign in to comment.