1
mirror of https://github.com/home-assistant/core synced 2024-07-18 12:02:20 +02:00

Updated the provider name to blockchain.com (#31534)

* Updated the provider name to blockchain.com

Blockchain.info moved from .info .com. Updated the name of the service to blockchain.com

* Updated the provider name to blockchain.com

Updated the provider name to blockchain.com
This commit is contained in:
P-Verbrugge 2020-02-06 15:41:48 +01:00 committed by GitHub
parent 44e243039c
commit 4f2195101c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"domain": "blockchain",
"name": "Blockchain.info",
"name": "Blockchain.com",
"documentation": "https://www.home-assistant.io/integrations/blockchain",
"requirements": ["python-blockchain-api==0.0.2"],
"dependencies": [],

View File

@ -1,4 +1,4 @@
"""Support for Blockchain.info sensors."""
"""Support for Blockchain.com sensors."""
from datetime import timedelta
import logging
@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)
ATTRIBUTION = "Data provided by blockchain.info"
ATTRIBUTION = "Data provided by blockchain.com"
CONF_ADDRESSES = "addresses"
@ -31,7 +31,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Blockchain.info sensors."""
"""Set up the Blockchain.com sensors."""
addresses = config.get(CONF_ADDRESSES)
name = config.get(CONF_NAME)
@ -45,7 +45,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
class BlockchainSensor(Entity):
"""Representation of a Blockchain.info sensor."""
"""Representation of a Blockchain.com sensor."""
def __init__(self, name, addresses):
"""Initialize the sensor."""