rossdargan / monzo-hass-sensor

A monzo sensor for home assistant
MIT License
16 stars 4 forks source link

Account ID #1

Closed shealavington closed 6 years ago

shealavington commented 7 years ago

Currently this is getting the Account_ID by the first ID inside the return from Monzo. For most of us, this will return the prepaid card.

A simple solution to allow current accounts would be to select the second in the list, however this then means it's not viable for when they phase out prepaid cards or, when new people only have one account.

I propose making this more modular to allow people to add as many accounts as they need by setting up Monzo platform.

I managed to get my current account balance showing by changing the following which obviously isn't permanant just so I knew where it was requesting the account from:

This means that the account can be easily passed through an extra variable in the config.

rossdargan commented 6 years ago

This has now been fixed.