Skip to content

Override pycountry for Kosovo #19

Closed

Description

@grischard

Problem/Motivation

python-radios cannot map the XK country code to Kosovo. Kosovo doesn't have a 'proper' ISO code, because of political problems that this github issue is too small to contain.

Expected behavior

Radio stations in Kosovo show up under the 'Kosovo' country.

Actual behavior

In the 'Radio Browser' integration in Home Assistant, in the country view, Kosovo radio stations can only be found at the bottom, under 'XK'.

Steps to reproduce

(How can someone else make/see it happen)

  1. Install Home Assistant and the Radio Browser integration (I imagine you've already done that ;)
  2. In Media > Radio Browser, look for Kosovo

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

pycountry/pycountry#100 will probably not get solved, because the maintainer only adds countries with an assigned ISO 3166 code.

python-radios should manually override the name lookup if the radio station's country code is XK.

Activity

  1. grischard commented on Mar 10, 2022

    @grischard
    Author

    Thank you!

  2. locked and limited conversation to collaborators on Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions