How to get max value in sensor attribute array

wow - fast response. Thanks, @petro!

…is there an idiot’s guide to learning about things like [:5]?