Adapt to recent upower api changes