Rename RitAssist to FleetGO (#25093)
This commit is contained in:
parent
bbe45cbd4b
commit
f25f44a75b
7 changed files with 21 additions and 21 deletions
|
@ -201,6 +201,7 @@ omit =
|
|||
homeassistant/components/fints/sensor.py
|
||||
homeassistant/components/fitbit/sensor.py
|
||||
homeassistant/components/fixer/sensor.py
|
||||
homeassistant/components/fleetgo/device_tracker.py
|
||||
homeassistant/components/flexit/climate.py
|
||||
homeassistant/components/flic/binary_sensor.py
|
||||
homeassistant/components/flock/notify.py
|
||||
|
@ -514,7 +515,6 @@ omit =
|
|||
homeassistant/components/rfxtrx/*
|
||||
homeassistant/components/ring/camera.py
|
||||
homeassistant/components/ripple/sensor.py
|
||||
homeassistant/components/ritassist/device_tracker.py
|
||||
homeassistant/components/rocketchat/notify.py
|
||||
homeassistant/components/roku/*
|
||||
homeassistant/components/roomba/vacuum.py
|
||||
|
|
1
homeassistant/components/fleetgo/__init__.py
Normal file
1
homeassistant/components/fleetgo/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
"""The FleetGO component."""
|
|
@ -1,4 +1,4 @@
|
|||
"""Support for RitAssist Platform."""
|
||||
"""Support for FleetGO Platform."""
|
||||
import logging
|
||||
|
||||
import requests
|
||||
|
@ -27,18 +27,18 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||
|
||||
def setup_scanner(hass, config: dict, see, discovery_info=None):
|
||||
"""Set up the DeviceScanner and check if login is valid."""
|
||||
scanner = RitAssistDeviceScanner(config, see)
|
||||
scanner = FleetGoDeviceScanner(config, see)
|
||||
if not scanner.login(hass):
|
||||
_LOGGER.error('RitAssist authentication failed')
|
||||
_LOGGER.error('FleetGO authentication failed')
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
class RitAssistDeviceScanner:
|
||||
"""Define a scanner for the RitAssist platform."""
|
||||
class FleetGoDeviceScanner:
|
||||
"""Define a scanner for the FleetGO platform."""
|
||||
|
||||
def __init__(self, config, see):
|
||||
"""Initialize RitAssistDeviceScanner."""
|
||||
"""Initialize FleetGoDeviceScanner."""
|
||||
from ritassist import API
|
||||
|
||||
self._include = config.get(CONF_INCLUDE)
|
||||
|
@ -57,7 +57,7 @@ class RitAssistDeviceScanner:
|
|||
second=range(0, 60, 30))
|
||||
|
||||
def login(self, hass):
|
||||
"""Perform a login on the RitAssist API."""
|
||||
"""Perform a login on the FleetGO API."""
|
||||
if self._api.login():
|
||||
self.setup(hass)
|
||||
return True
|
||||
|
@ -81,4 +81,4 @@ class RitAssistDeviceScanner:
|
|||
icon='mdi:car')
|
||||
|
||||
except requests.exceptions.ConnectionError:
|
||||
_LOGGER.error('ConnectionError: Could not connect to RitAssist')
|
||||
_LOGGER.error('ConnectionError: Could not connect to FleetGO')
|
10
homeassistant/components/fleetgo/manifest.json
Normal file
10
homeassistant/components/fleetgo/manifest.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"domain": "fleetgo",
|
||||
"name": "FleetGO",
|
||||
"documentation": "https://www.home-assistant.io/components/fleetgo",
|
||||
"requirements": [
|
||||
"ritassist==0.9.2"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": []
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
"""The ritassist component."""
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"domain": "ritassist",
|
||||
"name": "Ritassist",
|
||||
"documentation": "https://www.home-assistant.io/components/ritassist",
|
||||
"requirements": [
|
||||
"ritassist==0.9.2"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": []
|
||||
}
|
|
@ -1615,7 +1615,7 @@ rflink==0.0.46
|
|||
# homeassistant.components.ring
|
||||
ring_doorbell==0.2.3
|
||||
|
||||
# homeassistant.components.ritassist
|
||||
# homeassistant.components.fleetgo
|
||||
ritassist==0.9.2
|
||||
|
||||
# homeassistant.components.rejseplanen
|
||||
|
|
Loading…
Add table
Reference in a new issue