paoloantinori / ha_vodafone_power_station_device_tracker

Custom Device Tracker for Home Assistant to use Vodafone Power Station router network map.
MIT License
2 stars 1 forks source link

Impossibility of use password with special characters #5

Open giuseppecastaldo opened 2 years ago

giuseppecastaldo commented 2 years ago

My solution:

Now works with special characters and not.

...

class VodafonePowerStationDeviceScanner(DeviceScanner):

    def __init__(self, config):
        """Initialize the scanner."""
        self.host = config[CONF_HOST]
        self.username = config[CONF_USERNAME]
        self.password = config[CONF_PASSWORD]
        # self.password = urllib.parse.quote(self.password)
        # self.password = html.unescape(self.password)
        self.last_results = {}

        # Test the router is accessible.
        data = self.get_router_data()
        self.success_init = data is not None

...
chemelli74 commented 1 year ago

@giuseppecastaldo, working on a new library, your help would be much appreciated

Please join HomeAssistant on Discord and then contact me: chemelli74#2180

Simone

giuseppecastaldo commented 1 year ago

@giuseppecastaldo, working on a new library, your help would be much appreciated

Please join HomeAssistant on Discord and then contact me: chemelli74#2180

Simone

I no longer have a Vodafone station :(