Skip to content

Commit 11472e6

Browse files
authored
Remove location permission method lagging the UI (#3405)
<!-- Thank you for submitting a Pull Request and helping to improve Home Assistant. Please complete the following sections to help the processing and review of your changes. Please do not delete anything from this template. --> ## Summary <!-- Provide a brief summary of the changes you have made and most importantly what they aim to achieve --> ## Screenshots <!-- If this is a user-facing change not in the frontend, please include screenshots in light and dark mode. --> ## Link to pull request in Documentation repository <!-- Pull requests that add, change or remove functionality must have a corresponding pull request in the Companion App Documentation repository (https://github.com/home-assistant/companion.home-assistant). Please add the number of this pull request after the "#" --> Documentation: home-assistant/companion.home-assistant# ## Any other notes <!-- If there is any other information of note, like if this Pull Request is part of a bigger change, please include it here. -->
1 parent b8cd330 commit 11472e6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/App/Utilities/Permissions.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public enum PermissionType {
177177
let locationManager = CLLocationManager()
178178
switch self {
179179
case .location:
180-
guard CLLocationManager.locationServicesEnabled() else { return .restricted }
181180
return locationManager.authorizationStatus.genericStatus
182181
case .motion:
183182
return CMMotionActivityManager.authorizationStatus().genericStatus

0 commit comments

Comments
 (0)