planitech: use response as string for parsing (#44051)

This commit is contained in:
Valentin Deniaud 2020-06-16 11:19:39 +02:00
parent 1aa5b74779
commit 8e1fa84c97
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class PlanitechConnector(BaseResource):
auth_url = urlparse.urljoin(self.url, 'auth')
response = self.requests.get(auth_url, headers={'MH-LOGIN': self.username})
response.raise_for_status()
part1, salt1, part2, salt2, _ = re.split(r'(\<.*?\>)', response.content)
part1, salt1, part2, salt2, _ = re.split(r'(\<.*?\>)', response.text)
hardness1 = int(part1.split(':')[1])
hardness2 = int(part2.split(':')[1])
salt1 = get_salt(salt1)